[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: how to underline tree item when mouse hovering
|
Custom draw article:
http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html
(in particular see example 5 which just augments the native drawing of the
TreeItems).
Grant
"liutj" <pg_ltj@xxxxxxxxxxx> wrote in message
news:g4d7uq$4au$1@xxxxxxxxxxxxxxxxxxxx
> thanks for your quick reply,i would try
> "Tom Schindl" <tom.schindl@xxxxxxxxxxxxxxx> ????
> news:g4d5f8$f61$1@xxxxxxxxxxxxxxxxxxxx
> > You'll need to switch the tree to owner draw mode (which means you'll
need
> > to draw the content of the cell your own). Afterwards install a
mouse-move
> > listener on the tree, check with TreeItem-cell-index you are hovering
> > (TreeItem#getBounds(int)) and trigger a redraw of the hovered cell (the
> > same is true of course also when you leave the cell you need to redraw
> > without underline).
> >
> > Tom
> >
> > liutj schrieb:
> >> hello everyone,
> >> I want to make tree item underlined when mouse hover event
occur,how
> >> to implement this?
> >> Thanks!
> >>
> >>
> >
> >
> > --
> > B e s t S o l u t i o n . at
> > --------------------------------------------------------------------
> > Tom Schindl JFace-Committer
> > --------------------------------------------------------------------
>
>