|
There are three locations that return a ZERO for row or column
- On the row lablel.
- On the column label.
- Below the last row of data but still within the viewing area.
class tableviewer1 extends sashelp.classes.tableviewer_c.class; public char runObjectLabel / (state='o', initialValue='SingleClick'); public num borderTitleOffset / (state='o', initialValue=5); public char borderTitle / (state='o', initialValue='Click to Select'); public char backgroundColor / (state='o', initialValue='Syssecb'); public char columnLabels / (state='o', initialValue='Yes');
public list gSelected / (sendEvent='N'); public list row / (sendEvent='N'); public list column / (sendEvent='N'); public list lastSelect / (sendEvent='N'); _select: method / (state='o'); _super(); _getActiveCell(row, column); if listlen(row)=0 or listlen(column)=0 then do; _clearSelect(); _clearActiveCell(); if listlen(lastSelect) then _selectRow(lastSelect); return; end; if getitemn(row)=0 or getitemn(column)=0 then do; _clearSelect(); _clearActiveCell(); if listlen(lastSelect) then _selectRow(lastSelect); return; end; _clearSelect(); _clearActiveCell(); _selectRow(row);
setnitemn(gSelected, getitemn(row), 'selected row');
modelid.runInterface();
_refresh(); endmethod; _popup: method arg1 arg2:num / (state='o'); endmethod; endclass;
COPYRIGHT © 1989 - 2012 Montura, Inc.
All rights reserved. This material may not be published, broadcast,
rewritten or redistributed.
Terms
& Conditions -- Privacy Policy
|