How can I remove pages when I do a middle click over them?

Topics related to the Krypton Navigator.

Moderators: Phil Wright, Chris Porter

How can I remove pages when I do a middle click over them?

Postby Goose » Tue Sep 25, 2007 6:51 pm

Hi,
I'm trying to remove pages in Krypton Navigator when the middle mouse button is pressed over its tab (yes, like Firefox :)).

I don't find a way to handle events for the tabs, so I tried to do it from the Navigator's MouseUp event. From here, I can catch the middle click and its coordinates but I don't know over which tab occurs (not necessary over the selected page). I'm trying with the GetChildAtPoint() method, but this don't return tabs.

Any solution?

thx
Goose
Good little roll :)... (ok, my english ain't good, sorry)
Goose
 
Posts: 1
Joined: Tue Sep 25, 2007 6:45 pm

Postby Phil Wright » Tue Sep 25, 2007 7:50 pm

At the moment there is no way to do this as you cannot find the page header from a given mouse point. I will add a TODO item for the next release for a method that returns a page from the provided mouse point.
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: How can I remove pages when I do a middle click over the

Postby loris128 » Sat Jul 31, 2010 12:44 am

Resurrecting an old thread...
Has this todo ever made it to production?
I really really would like to close a page when I middle click it...
loris128
 
Posts: 2
Joined: Sat Jul 31, 2010 12:39 am

Re: How can I remove pages when I do a middle click over the

Postby Phil Wright » Mon Aug 02, 2010 3:05 pm

There is now a method KryptonNavigator.PageFromPoint that takes a point in KryptonNavigator coordinates and returns the KryptonPage that the point is over. (This is the header that it is over and not the page contents area).
Phil Wright
Site Admin
 
Posts: 2720
Joined: Thu Apr 13, 2006 2:55 pm
Location: Melbourne, Australia

Re: How can I remove pages when I do a middle click over the

Postby loris128 » Mon Aug 02, 2010 5:36 pm

Thanks Phil, I tested it and it works :)
loris128
 
Posts: 2
Joined: Sat Jul 31, 2010 12:39 am


Return to Krypton Navigator

Who is online

Users browsing this forum: No registered users and 0 guests