Solved

Double click on tab of a page control

Posted on 2004-10-20
9
513 Views
Last Modified: 2010-04-05
I have a page control and several tab sheets, I want to write an event when users double click on the tab, say to close a open sheet, how do I detect the double click event as both of the page control and tabsheet control do not have a double click event?
0
Comment
Question by:foxvision
9 Comments
 
LVL 11

Expert Comment

by:calinutz
Comment Utility
Why not use the onChange event if this is what you want to catch.
0
 

Author Comment

by:foxvision
Comment Utility
I can't use the OnChange event as I do not know if user uses a double click. I want to use double click to remove an existing tab.
0
 

Author Comment

by:foxvision
Comment Utility
0
Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 

Expert Comment

by:krypto2000
Comment Utility
you have to create a new component the is derived from TPageControl and add the onDblClick event that is the only way...
0
 

Author Comment

by:foxvision
Comment Utility
Please delete this question. I answer my own question. Thank you.

uses
  Classes, Controls, ComCtrls;

type
  TxxPageControl = class(TPageControl)
  public
    constructor Create(AOwner: TComponent); override;
  published
    property OnDblClick;
  end;

implementation

constructor TxxPageControl.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  ControlStyle := ControlStyle + [csClickEvents];
end;
0
 

Expert Comment

by:krypto2000
Comment Utility
However, you can give the point for people that who took some time to help you...
0
 

Accepted Solution

by:
modulo earned 0 total points
Comment Utility
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now