[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
|
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
> --------------------------------------------------------------------