I have been going through the Form Editor Lab on my
Mac and have been finding a few things that don't seem
correct. And before I get involved in mentioning these
issues, let me say that the Lab is very good and I greatly
appreciate its functionality. I especially liked the design
of the Lab that allows me to ignore its suggestion to name
the form `dice` and choose my own name
Lesson 4 of 37 states the following, which suggests
that Esc closes the `view` form, but later we are told that
the view button on the design form produces a form, which is
not closed by Esc. What's up with that?
Furthermore, the `view button` form is totally inert
afaik: clicking on it anywhere except the buttons in the
frame does nothing. So what good is it except to remove the
grid marks that are in the original design form? Only typing
dice_run'' in the .ijx window after loading the .ijs form
script produces a live -- as opposed to inert -- form for
me.
-- (4 of 37) Run Button
-------------------------------------
You can try out this form, by clicking the View button in the
Design dialog. This displays the form as it will appear when
you run it normally. The grid marks are not shown.
Press Esc to close the view form.
)
Lesson 12 of 37 states the following, which suggests
that the ijs window will be opened after Ctrl-clicking on
the graphic rectangle for closing the form. On my Mac I
think it does that, but I lose the cursor in the ijs window:
I no longer see the cursor until I click somewhere in the
ijs window to make it reappear at the clicked position.
-- (12 of 37) Event Handlers
--------------------------------
Event handlers are functions that respond to events on the
form. The form created so far has only event handlers for
form close and for the Cancel button. To view the definition
for the Cancel button, hold down the Ctrl key, and click on
the dice form Cancel button. The script window you
originally
opened is displayed, with the cursor at the following entry:
dice_cancel_button=: 3 : 0
dice_close ''
)
)
Lesson 14 of 37 states the following, which suggests
that the ijs window will be opened after Ctrl-clicking on
the Ok rectangle of for the form. On my Mac I think it does
that, but, again, I lose the cursor
-- (14 of 37) Event Handlers (ctd)
--------------------------
Now let us try writing a program to handle a click on the OK
button.
Hold down the Ctrl key, and click on the dice form OK
button.
The script window is now opened at the following entry:
dice_ok_button=: 3 : 0
)
)
Lesson 15 of 37 states the following, which suggests
that Cancel will return me to the Design dialog. It does
that if I click Cancel or tab to it and the hit the space
bar. So far so good.
The result I want of being able to use a key
press to close the form, does not work with the
original verb definitions, below.
dice_close=: 3 : 0
wd'pclose'
)
dice_cancel_button=: 3 : 0
dice_close''
)
-- (16 of 37) Event Handlers (ctd)
--------------------------
After this is entered, load the script, and run the program
by entering:
dice_run''
Click OK, then Cancel to return to the Design dialog.
)
These may be Mac problems, but I would like for them
to be corrected for the next release, please.
--
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm