On Thu, 04 May 2017, herberth guzman wrote: > Hi > > Close If Clicked Outside Form > > Is there any way to close a form if it is clicked outside the main form? > > For example, just as applets on the network or audio volume or KDE menu. >
Try the Deactivate event. The documentation doesn't really state what it means for a window to be "deactivated" but a quick test shows that this event is raised when the window ceases to be... the active one, e.g. when you click outside of it or select another window by Alt+Tab (on my desktop at least). Regards, Tobi -- "There's an old saying: Don't change anything... ever!" -- Mr. Monk ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Gambas-user mailing list Gambas-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/gambas-user