Oddly, win.getfocus is one of the things which does need
a win.resetfocus before it when it is used from a bar button.
Command: win.resetfocus
More commands: win.debug(win.getfocus)
returns the handle of the previously active child window
but
Command: win.debug(win.getfocus)
returns 0 when run from a button.
Another problem with win.getfocus is that it returns the
handle of the child window. That is useful for a few purposes
but more often the parent handle is needed. So although it is
a good idea to capture the identity of the (previously) active
window as early as possible if a bar button leads to a script,
it is usually better to do that with target=win.handle("active")
which, by the way, doesn't seem to need a win.resetfocus
even when it is used as the first command of a button.
Attention: PowerPro's Web site has moved: http://www.ppro.org
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/power-pro/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/