Hi, im new to Eclipse & swt . Im hoping to use a table or tableviewer to
display a list of selectable images, im hoping to highlight the cell with
a light foreground when the mouse is over, and keep the normal cell
rendering when the item is selected i.e. dark blue. ive added a variable
to a listerner for mouse events on the table which is set on mouse hover,
or mouse enter, and use this variable in the listener for paint item
events below...
#just some pseudo code
table.addListener(SWT.PaintItem, new Listener() {
public void handleEvent(Event event) {
// if selected display one colour
else if mouse over variable set select another
else dipslay normal cell rendering
}
}
});
The mouse over variable is not being taken into consideration i.e. the
behaviour i want for the mouse over highlight cell is not being done.
Any ideas, or am i using the wrong widget for this behaviour/?
Lowell