Toggled object Close on any action

Tuesday, April 4, 2006 by tadad | Discussion: DesktopX

I have an object that toggles when I click on another object it is set to close on any action which is fine when I click on the desktop however if I click on an open window, taskbar, start button whatever else it remains open. Is there anyway to set it so that it closes on the very next mouse click no matter where it is either by script or setting change.
Cyberium
Reply #1 Monday, July 3, 2006 8:36 PM
I would suggest playing around with the Object.KillFocus property...
Cyberium
Reply #2 Wednesday, August 2, 2006 5:30 AM
Or 2nd Suggestion... using OnMouseLeave sub have it set a timer that will wait for say 2 seconds after the mouse has moved off the object and then hide it... Code would be similar to....

Sub Object_OnMouseLeave
Object.SetTimer 1, 2000 '2 Seconds
End Sub

Sub Object_OnTimer1
Object.Visible = False
Object.KillTimer 1
End Sub

Please login to comment and/or vote for this skin.

Welcome Guest! Please take the time to register with us.
There are many great features available to you once you register, including:

  • Richer content, access to many features that are disabled for guests like commenting on the forums and downloading skins.
  • Access to a great community, with a massive database of many, many areas of interest.
  • Access to contests & subscription offers like exclusive emails.
  • It's simple, and FREE!



web-wc01