I’m using Delphi 7.
I want to react on click(left) on empty space of PageControl — on area righter than the last tab shown. How can i do that?
I’m using Delphi 7. I want to react on click(left) on empty space of
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can handle the click at the parent control of the PageControl. F.i. if the PageControl is placed on a form, the form’s ‘MouseDown’ events will be called for that specified region. The reason is that the PageControl returns
HTTRANSPARENTfor hit test messages for that region, so the mouse messages is directed to the control beneath it.If that’s not OK, you can change how
WM_NCHITTESTis handled, for example by subclassing the control, or in a derived control:then, the control’s
OnMouseDownevent will be fired. Of course you could test for the region before modifying the message’s return value, this example was only to show how it would work.