This problem is not replicated in Win2000 (dusting off my old Windows
machine). Calling setfocus with an id of a control on the required
form does seem to make that form the active one.

So it appears to be a Mac-only problem. Can any Mac-owner still using
J602 help here?

On Thu, Nov 10, 2011 at 4:28 AM, Ian Clark <[email protected]> wrote:
> J602 JWD question...
>
>   JVERSION
> Installer: j602a_mac_intel.dmg
> Engine: j602/2008-03-03/16:45
> Library: 6.02.056
>
> Myapp plots some data. Doing so creates the Plot window and leaves it
> on top, ie as the currently selected window.
>
> How do I bring the myapp form to the top again, by a statement in the code?
>
> I had hoped that this would do the trick:
>   wd 'psel myapp; setfocus input'
> --where input is the id of an edit control on the form: myapp.
>
> But it doesn't: the Plot window remains firmly on top.
>
> This is more important on the Mac than it is in MSWin (...after all,
> you can always click the myapp form), because Mac windows don't carry
> separate menubars, and whichever window is on top determines the
> menubar that shows at the top of the screen -- and with it the
> keyboard / hotkeys behavior.
>
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to