I am creating a transparent form app, that should behave as a widget...
For now all works OK, but I would also like to prevent my app from being pushed back in the z-order when another app is brought into focus...
How can this be achieved?
.....
AlwaysOnTop(MainForm,True)
End Sub
private Sub getStage(o As JavaObject) As JavaObject
Return o.GetFieldJO("stage")
End Sub
Sub AlwaysOnTop(o As Form,boo As Boolean)
getStage(o).RunMethod("setAlwaysOnTop",Array(boo))
End Sub
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.