Skip to main content


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 11:04 Go to next message
Eclipse UserFriend
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 20:07 Go to previous message
Eclipse UserFriend
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 20:07 Go to previous message
Mario Winterer is currently offline Mario WintererFriend
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: Thu Dec 26 13:33:57 GMT 2024

Powered by FUDForum. Page generated in 0.03828 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top