Mouse enter exit pressed

i would like to have a separate window show during a mouseenter event (in a button event)

i would like the same window to hide on mouseexit…

i would like the window to stick around if the mouse is pressed and not disappear when the mouse exits.

is this possible

If you have a button in Window1 and another Window named Window2 with implicit instance turned on then in the mouseEnter event in button

Window2.Show()

Add a property to Window1 to save if you have clicked. eg

pWasClicked as boolean

Then in the pressed event on the button include

pWasClicked = true

And finally on your mouse exit event on the button

if not pWasClicked then

Window2.Close()

end if

pWasClicked = false //clear out cache, could also add to mouse enter event just in case

Should work, 100% untested