Вниз
Скачать: CL | DM;

Как отследить двойной щелчок по TShape?   Найти похожие ветки 

← →
revo   (2004-02-16 14:36) [0]

Как отследить двойной щелчок по TShape?


← →
Radionov Alexey ©   (2004-02-16 14:53) [1]

Вот так получилось:

procedure TForm1.Shape1MouseDown(Sender: TObject; Button: TMouseButton;
Shift: TShiftState; X, Y: Integer);
begin
if ssDouble in Shift then
ShowMessage("DoubleClick!");
end;


← →
ssk   (2004-02-16 15:02) [2]

а можно еще и так (типа наследник):

unit dmShape;

interface

uses
SysUtils, Classes, Controls, ExtCtrls;

type
TdmShape = class(TShape)
private
{ Private declarations }
protected
{ Protected declarations }
public
{ Public declarations }
published
{ Published declarations }
property OnDblClick;
end;

procedure Register;

implementation

procedure Register;
begin
RegisterComponents("Samples", [TdmShape]);
end;

end.
;-)



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.45 MB
Время: 0.016 c
1-93855
Grinder
2004-02-16 16:46
2004.02.29
Resize в ListView


14-94096
DeMoN-777
2004-02-05 22:04
2004.02.29
Беспредел...


3-93793
Sergvc
2004-02-03 16:06
2004.02.29
список баз в SQL Server


1-94001
REA
2004-02-16 17:14
2004.02.29
DrawText


14-94129
Домарощинер
2004-02-09 19:57
2004.02.29
Классный плагиат




   Наверх