Вниз
Скачать: 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.017 c
1-93962
neteditor
2004-02-18 17:50
2004.02.29
Наследование TForm: Resource not found


6-94062
NoIdeaAboutName
2003-12-22 22:52
2004.02.29
Как отловить установление dialup соединения,.


3-93773
HolyMan
2004-02-05 01:12
2004.02.29
Проблема с отображением даты в полях грида


14-94123
Думкин
2004-02-08 06:35
2004.02.29
С днем рождения! 8 февраля.


14-94175
Sergo
2004-02-07 10:19
2004.02.29
RW (Nero)




   Наверх