Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.02.29;
Скачать: 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 вся ветка

Текущий архив: 2004.02.29;
Скачать: CL | DM;

Наверх




Память: 0.46 MB
Время: 0.027 c
1-93897
VID
2004-02-11 14:55
2004.02.29
Как выделить некий текст в TEmbeddedWB ?


1-93967
Алексей
2004-02-17 09:15
2004.02.29
Please wait на время выполнения цикла


14-94188
default
2004-02-06 15:49
2004.02.29
Задачка


14-94104
SkyRanger
2004-02-10 09:40
2004.02.29
Добро и Зло в Вашем понимании...


6-94068
BaMnuP
2003-12-22 05:05
2004.02.29
Помогите с сокетами ! ! ! !