Ryan Plymire 15.Dec.09 01:21 PM a Web browser
Application development 6.1.2 Windows XP
Is there a GC for the SWidgets that you can use to manually draw onto them with? For example, I am trying to draw a line in a STable cell using something like:
GC gc = new GC(cell.getControl());
gc.drawLine(5, r.height - 5, r.width-5, r.height -5);
But cell.getControl() throws a null pointer, is there any other way to do this?
I've also tried attaching to the paintItem listener and doing it this way but to no avail.