Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Nebula » Detect Mouse click on Row header
Detect Mouse click on Row header [message #65364] Mon, 06 July 2009 07:04 Go to next message
Eclipse User
Originally posted by: m.kasid.gmail.com

Hi,

Can we detect a mouse click on the Row headers?

--
Thanks,

Mustufa
Re: Detect Mouse click on Row header [message #65962 is a reply to message #65364] Tue, 21 July 2009 16:07 Go to previous message
Eclipse User
Originally posted by: mario.winterer.gmx.at

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@gmail.com> schrieb im Newsbeitrag
news:h2sloo$sdc$1@build.eclipse.org...
> Hi,
>
> Can we detect a mouse click on the Row headers?
>
> --
> Thanks,
>
> Mustufa
>
Re: Detect Mouse click on Row header [message #595779 is a reply to message #65364] Tue, 21 July 2009 16:07 Go to previous message
Mario Winterer is currently offline Mario Winterer
Messages: 136
Registered: July 2009
Senior Member
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@gmail.com> schrieb im Newsbeitrag
news:h2sloo$sdc$1@build.eclipse.org...
> Hi,
>
> Can we detect a mouse click on the Row headers?
>
> --
> Thanks,
>
> Mustufa
>
Previous Topic:Nebula Newbie
Next Topic:Make row invisible
Goto Forum:
  


Current Time: Sat Aug 23 07:40:21 EDT 2014

Powered by FUDForum. Page generated in 0.01633 seconds