[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.technology.nebula] Re: Detect Mouse click on Row header

You could add a mouse listener to the grid itself and calculate if a mouse
event occures in the header area or in the content area by using
grid.getHeaderHeight():

if (event.y < grid.getHeaderHeight()) {
  // header
} else if (event.y > (grid.getSize().y - grid.getFooterHeight())) {
  // footer
} else {
  // content
}

This works for our purpose.

"Mustufa Kasidwala" <m.kasid@xxxxxxxxx> schrieb im Newsbeitrag news:h2sloo$sdc$1@xxxxxxxxxxxxxxxxxxxx
Hi,

Can we detect a mouse click on the Row headers?

--
Thanks,

Mustufa