Главная страница
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.026 c
1-93874
MadGhost
2004-02-15 12:29
2004.02.29
можно ли использовать один класс в разных модулях?


14-94179
Nelud
2004-02-07 12:10
2004.02.29
Проблема с RW


1-93984
atmospheric
2004-02-18 14:46
2004.02.29
RichEdit форматирование текста ?!


3-93759
Крутыш
2004-02-04 14:13
2004.02.29
Проблемы с сохранением.


7-94210
Dimich1978
2003-12-08 20:08
2004.02.29
Определить, разорвано ли локальное соединение