XML Feeds

.

[jitter] Bug report: jit.cellblock jumps to lowest visible row when navigating with arrows

Ben Bracken ben at cycling74.com
Fri Jul 6 13:12:26 MDT 2007


Hi Mattijs,

I can confirm your observation regarding the arrow key issues. I'll send 
it on to the appropriate person.

You may have already figured this out, but if you would like to have 
cellblock scroll to the selected location, i recommend using a 'sync 
click' message as well, like this:

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 76 160 149 196617 select \$1 \$2 \, sync click \$2 \$1;
#P newex 76 121 27 196617 pak;
#P number 120 95 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 76 95 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P user jit.cellblock 76 222 358 457 3 9 20 20 45 17 0 1 1 0 1 1 1 1 1 0 
0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
#P connect 4 0 0 0;
#P connect 1 0 3 0;
#P connect 2 0 3 1;
#P connect 3 0 4 0;
#P window clipboard copycount 5;

all the best,
-Ben

Mattijs Kneppers wrote:
> Hi,
>
> If I send cellblock a message to select a cell that is not in the current visible area, cellblock doesn't automatically scroll to that location to make the selected cell visible. 
>
> The bug though is that after selecting a row in a non visible area, then focussing on cellblock and navigating with the arrow keys, the selection jumps back to the lowest visible row.
>
> Below is a patch with steps to reproduce:
>
> #P window setfont "Sans Serif" 9.;
> #P window linecount 3;
> #P comment 208 159 134 196617 3) press arrow down. the selection will jump back to the lowest visible row;
> #P window linecount 2;
> #P comment 208 119 134 196617 2) click the scrollbar once to set key focus on cellblock;
> #P window linecount 1;
> #P message 82 91 61 196617 select 0 10;
> #P user jit.cellblock 82 116 188 234 3 9 2 10 45 17 0 1 1 1 0 0 1 0 1 0 0 0 255 255 255 0 0 0 0 0 0 191 191 191 0 0 0 215 215 240 1 1 1 0 4 0 0 0;
> #X set 0 0 1;
> #X set 0 1 2;
> #X set 0 2 3;
> #X set 0 3 4;
> #X set 0 4 5;
> #X set 0 5 6;
> #X set 0 6 7;
> #X set 0 7 8;
> #X set 0 8 9;
> #X set 0 9 10;
> #P comment 208 91 100 196617 1) select row no 10;
> #P connect 2 0 1 0;
> #P window clipboard copycount 5;
>
>
>
> Mac OS 10.4.10, Max 4.6.3, jitter 1.6.3
>
> Regards,
> Mattijs
>
>   



More information about the jitter mailing list