Linda
You write
> The button, 1, should be activated automatically
Do you mean that the handler of button 1 should be executed
when executing setfocus? That is not the effect of setfocus.
To obtain that effet, execute the handler verb (study_P1_button).
I assume that you mean button 1 should be responsive to a click and
execute its handler upon a click. This is what happens here;
when I click on button 1, the picture changes and focus passes
to button 2. I tested with J601 and J602 beta, both under WinXP
fully up-to-date.
With J601, I see no problem at all.
With J602, after a few executions of study_P0_button ''
the session totally disappears! So there is a bug in the Win32 d-beta.
Jsoftware
I easily reproduce the bug on my system (I suspect it could be
different on others). Starting with the latest of Linda's script
(Jan 2, 22:28),
1-adjust the path to toucan and jbox files
2-unsplit the winexec statement
3-ctl-W
4-close the form (clicking is ok, but unnecessary)
5-study_P0_button^:5 '' (close the 5 forms)
6-repeat step 5 until vanishing
There is no dump in Dr Watson directory.
Gilles
---------- Original Message -----------
From: "Tom Arneson" <[EMAIL PROTECTED]>
To: "'Beta forum'" <[email protected]>
Sent: Thu, 3 Jan 2008 14:01:15 -0600
Subject: RE: [Jbeta] The real 'setfocus' mystery
> Not by using wd'setfocus button1' (I likely don't have the correct button
> name here).
>
> You must execute it the same way you executed button 2
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> On Behalf Of [EMAIL PROTECTED] Sent: Thursday, January 03, 2008 13:52
> To: [email protected]
> Subject: Re: [Jbeta] The real 'setfocus' mystery
>
> The button, 1, should be activated automatically and execute its
> code as it does in j402.
>
> Linda
>
>...
------- End of Original Message -------
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm