Show window without taking focus

Since 64bit compiled Apps don’t show ListBox Helptags and Tooltips, I’ve build tiny class using a canvas to do the same.
All works fine except that I don’t know how to create the shadow under the Tooltip. So I figured I use a standard Window using type ‘Shadowed Box’ (Frame = 5).
That looks perfect except that it steals the focus when shown.

Does anyone know of a way show a Window while keeping the focus where it is?

Set the “Visible” property of the tooltip window to False in the window editor. Then put the following code where the tooltip should become visible:

Declare Sub orderFront Lib "AppKit" Selector "orderFront:" (NSWindow As Ptr, sender As Ptr) Dim win As New TooltopWindow() Dim p As Ptr = Ptr(win.Handle) orderFront(p, Nil)

1 Like

Nice!!!
Thank you Eli.