Jump to content


Photo

Close Page on TNxPageControl by Mouse wheel button click


  • Please log in to reply
1 reply to this topic

#1 jerz

jerz
  • Members
  • 9 posts

Posted 06 September 2011 - 05:51 PM

Hi,

i want to close active (or inactive) tabs by clicking on tab caption by mouse wheeler. What is the best solution for this?
How to calculate tab caption area under mouse cursor?

Regards
J

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 06 September 2011 - 09:40 PM

Hi,

You may use next code:


var
  Tab: TNxTabSheet;
begin
  Tab := NxPageControl1.GetTabAtPos(X, Y);


For next release I will add OnTabClick event.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users