I have an own control which paints a grid, the control is derived from Canvas-class. This widget can be used in SWT-designer without problems. The widgets displays columns, a column is derived from Item. The problem: A column cannot be dragged onto my inctance of the grid in the designer just like a TableColumn for example. It has the following constructors:
- Code: Select all
public MyGridColumn(MyGrid grid, int style) {
super(myGrid, style);
setIndex(grid.getColumnsCount());
}
public MyGridColumn(MyGrid grid, int style, int index) {
super(myGrid, style, index);
setIndex(index);
}
But I just can't get the drag n drop featur for that columns. It works for widgets like the SWT-table or for the Nebula-grid. What do I have to implement to get this working for a control that is owner-drawn?
Thanks and bye,
Illvoid