Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Double click on tab of a page control

Posted on 2004-10-20
9
Medium Priority
?
620 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
ID: 12367423
Why not use the onChange event if this is what you want to catch.
0
 

Author Comment

by:foxvision
ID: 12367885
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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 

Expert Comment

by:krypto2000
ID: 12379582
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
ID: 12396177
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
ID: 12397857
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
ID: 13458130
PAQed with points refunded (125)

modulo
Community Support Moderator
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Screencast - Getting to Know the Pipeline
Suggested Courses

963 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