Вниз
Скачать: 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.44 MB
Время: 0.015 c
14-94165
Макс Реалов
2004-02-03 18:23
2004.02.29
В чём разница?


14-94118
syte_ser78
2004-02-09 14:55
2004.02.29
перевод каретки


3-93797
Victor!
2004-01-31 15:12
2004.02.29
Вопрос по Microsoft Jet


14-94157
Lucky[ELF]
2004-02-08 12:13
2004.02.29
Что же лучше C или Pas? Linux или Windows?


14-94101
ИМХО
2004-02-10 03:02
2004.02.29
Фотографу




   Наверх