[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: cell renderer for widgets.list?

Veronika Irvine wrote:
Widgets can paint outside of the paint event.  You are never guaranteed that
the painting you do in the paint event will always be "on top".


Doesn't this contradict with the latest article on SWT graphics? On the "Drawing on a Control" section this is the last paragraph:


"The application always get a paint event after the underlying OS has drawn the control, so any drawing done to the paint event's GC will be shown on top of the control. There are some exceptions to this, such as for a ToolBar where on certain platforms the items are heavyweight controls that can't be drawn on top of, however this is not considered normal behavior. For general-purpose drawing the control org.eclipse.swt.widgets.Canvas can be used that is optimized for graphics operations."

"Cagatay Kavukcuoglu" <cagatayk@xxxxxxxxxxxx> wrote in message
news:bdll51$84k$1@xxxxxxxxxxxxxxxx

Adam Kiezun wrote:


afaik, there's no way - Lists are for Strings
try Table

a.
--
eclipse.org



Just wondering here... Would it possible to add a paint listener to the list and paint over the item manually?