After some more testing:
The problem of finding the handle of the child window
is now solved by the new win.getfocus. Thanks Bruce :-)

At least it works if win.getfocus is included in the command
or in the More commands of a hotkey. It also works if it is
included in a script file run from a hotkey.
It doesn't usually work if it is in a script run from a menu item,
where the menu drops down from a bar button. I guess after
the bar is focussed, it cannot retrieve the previously focussed
child window.
That's not a major inconvenience to work around. If necessary,
the script could refocus the target with window.show() first
(not tested).

However there remains the problem of Window.MaxNormal(h)
and Win.Maximize(h) and Win.Restore(h) working differently
in different apps.

I found when attempting to use these commands on child windows:

In Atlantis, you can Restore a maxxed child window
but you cannot maximize a non-maxxed window.
I gather that Slawomir found the opposite in EditPlus - you can
maximise but not restore.
In Ultraedit, neither works as expected.

I guess that means that different apps have different ways of
implementing MDI so it will be difficult to find a general method
which will work for all MDI apps.



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/JV_rlB/TM
--------------------------------------------------------------------~-> 

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/
 



Reply via email to