Focus Open Window?

5 views
Skip to first unread message

atlant...@gmail.com

unread,
Feb 28, 2014, 10:23:03 PM2/28/14
to node-...@googlegroups.com
I have a desktop app that i am coding here and i need a little help with one thing. I need to know how can i focus on a window that is open when it it not in focus. 

Example: jon doe clicks on james doe and there is already a window open for james doe, how can we just focus that window that is already open?

thanks!

VoidVolker

unread,
Mar 1, 2014, 12:33:46 AM3/1/14
to node-...@googlegroups.com, atlant...@gmail.com
1. Create the list of windows.
2. Set events for them 'open', 'close' and etc. and when they trigger - remember in var window state.
3. When user make click just find windows in list.
4. Get state of window.
5. If it not hidden - show it.
Reply all
Reply to author
Forward
0 new messages