On 8/8/07, Christopher J Gross <us.ibm.com>chris.grossus.ibm.com>
wrote:
>
> Hi Jonathan,
>
> It works for me. Can you explain further or provide a reproducible
snippet? Did you pass SWT.VIRTUAL?
>
> Regards,
> -Chris
>
Yes here is a snippet of what I am trying to do. Probably I haven't quite
figured out how to do it...
The handleEvent method never gets called. Shouldn't it be?
import org.eclipse.nebula.widgets.grid.Grid;
import org.eclipse.nebula.widgets.grid.GridColumn;
import org.eclipse.nebula.widgets.grid.GridItem;
import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.FillLayout ;
import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Event;
import org.eclipse.swt.widgets.Listener;
import org.eclipse.swt.widgets.Shell;
public class VirtualGridWidget {
public static void main(String... args) {
Display display = new Display();
Shell shell = new Shell(display);
shell.setLayout(new FillLayout());
Grid grid = new Grid( shell, SWT.BORDER | SWT.V_SCROLL
| SWT.H_SCROLL | SWT.VIRTUAL | SWT.MULTI );
grid.setHeaderVisible(true);
grid.setRowHeaderVisible(true);
grid.setCellSelectionEnabled(true);
grid.setItemHeight(20);
for (int i = 0; i < 10; i++) {