Cliff,
Thank you for trying. By mouse activity, I mean
*dragging* downward or to the right on the image in the left
part of control (after an image is opened from a file).
Aren't you able to see the image move after you stop
dragging?
Even if an error alert is thrown, I continue my drag
and I see movement of the image, sometimes in the direction
I have dragged and sometimes backwards relative to the
direction I have dragged. When an error alert shows, then
the movement does not appear until *after* I have clicked Ok
on the error alert dialog. The scrollbars do not move, but
they can be used in the original manner with no error alerts
at any time.
(more below)
On Mon, 7 May 2007, Cliff Reiter wrote:
+ Brian,
+ I haven't been able to duplicate any mouse activity using ped8
+ plus your 4 functions.
+
+ Are locales an issue? Try removing the local definitions
+ in the material from ped8?
+ What are example values leading to the index error (run debug?)
Below are the contents of the three debug windows
caused by a "stop" for which no error alert is thrown.
****contents of the top debug window(stop/no error)*****
[0] MAG=.".mag
[1] in=.<.((i.%<:)400)*((400%99)*(99-MAG))+(MAG%99)*<:M<.N
[2] HP=.<.(((".horpos)+{.pos)%99)*N->:{:in
[3] VP=.<.(((".verpos)+{:pos)%99)*M->:{:in
*>[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
****contents of the top debug window(stop/no error)*****
****contents of the middle debug window(stop/no error)*****
stop
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mblup[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mbldown[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
jdbstop_name_select[7] jdb_info j, 0 >@{ ndx { SMNAMES
jdbstop_name_button[0] jdbstop_name_select
wdhandler_jdebug_[15] wd_fn~''
****contents of the middle debug window(stop/no error)*****
****contents of the bottom debug window(stop/no error)*****
y n 0$''
bit n 400
400$'mlnputsxvvyywvwwwxyvwtpvvuwtvszutwwurwuvuuvwsvvwuwwvxwvwvwxzywtwuv...
HP n 8
in n 400$0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
20 21 22 23 24 25 26 ...
M n 834
VP n 96
bitmap2 n 834
834$'VX[X\]\]``_`acc_a_chbahddecffhkidjjkehkgghkfdggffkhhjiijkkjkkjgjkm...
****contents of the bottom debug window(stop/no error)*****
The values of HP and VP in the bottom debug window
(I presume the bottom window is called the "Watch Window")
vary in unpredictable-to-me ways, while M is constant at
834, which corresponds to the shape of the noun "bitmap2". .
I recall when error alerts have been thrown, either HP or VP
is a negative value, which would of course produce an index
error.
It now seems that if the debugger is executed with a
stop as above at updatepic[4] , then no error alerts are
thrown provided that I click on the "Run" button after each
stop, and before I drag again. Below I show the middle debug
window after 3 or so such drags. It looks to me as if
several mbldups are NOT being shown in this window maybe
because the debugger is interrupting the drag.
****contents of the middle debug window(stop/no error)*****
stop
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mblup[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mbldown[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mbldown[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
updatepic[4] bit=: (HP+in){"1 ((M-1)-|.VP+in){bitmap2
paledit_pic_mbldown[3] updatepic ''
wdhandler_ped8_[15] wd_fn~''
****contents of the middle debug window(stop/no error)*****
+ I don't see at a glance why a scrollbar position couldn't be added
+ to a mouse movement, but ped8 is circa 1998 if I recall, so
+ I don't claim to remember how it was put together.
I can imagine that remembering the workings of ped8
is difficult for you, and difficult for you to justify
reviewing, but I have found no examples of using mouse
capturing except in formedit.ijs and solitaire.ijs , and am
having a hard time knowing how to implement mouse editting.
If all else fails, I think I can continue to use the scroll
bars instead, but the mouse seems much more natural to me.
+ Best,
+ Cliff
Thank you, again.
+
(B=)
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm