On further testing why I can not get the number of visible rows in J602 even using >.Sh % RowMinHeight , I found that RowMinHeight does not changed with font size in J602.

NB. J601
   tt_run''
7
31
200
7

NB. J602
   tt_run''
30
20
200
10

Note the incorrect value of RowMinHeight__grid in J602 that give wrong visible 
rows.

NB. ========================================
load 'jsgrid'
TT=: 0 : 0
pc tt closeok;
xywh 0 0 255 100;cc g isigraph;
pas 6 6;pcenter;
rem form end;
)

tt_run=: 3 : 0
wd TT
NB. initialize form here
wd 'pshow;'
grid=: '' conew 'jsgrid'
font=. '"Lucida Console" 20'
show__grid ('HDRFONT' ; 'CELLFONTS' ; 'CELLDATA' ; 'GRIDID' ; 'HDRCOL' ; 'COLWIDTH' ; 'CELLALIGN' ; 'COLAUTOFIT' ; 'COLSCALE' ; 'HDRCOLALIGN' ; 'GRIDSORT') ,. font ; (<font) ; (40 1$<("0) i.100) ; 'g' ; (<'abc') ; 100 ; 0 ; 0 ; 0 ; 1 ; 0
1!:2&2 MaxSRows__grid
1!:2&2 RowMinHeight__grid
1!:2&2 Sh__grid
1!:2&2 >. Sh__grid % RowMinHeight__grid
''
)

tt_close=: 3 : 0
wd'pclose'
)
NB. ========================================

--
regards,
bill
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to