sync on
startBlue "", ""
`make a gadget from main window
main = createGadgetFromWindow(mainWindow())
`Setup some more here
Do
cls
Print "Gadget Handle Main window: ", windowHandle(main)
Print "Gadget Handle: ", gadgetUnderMouse()
if gadgetUnderMouse() = main then print "Gadget is over main window (main = gadgetUnderMouse())"
sync
Loop
It shows a different handle, I agree. But gadgetUnderMouse() seems to hold multiple values.
If you type "if gadgetUnderMouse() = main" then the result it TRUE, even though the handles are showing otherwise.
Weird, I know. But this would be the only thing where I use those two commands together, and it works that way, so no complaining from me... (handles aren't supposed to be shown to the user)
It's the programmer's life:
Have a problem, solve the problem, and have a new problem to solve.