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

Наследник от TStringGrid   Найти похожие ветки 

← →
Quattro ©   (2005-10-21 15:14) [0]

Добрый день! подскажите пожалуйста, почему RBUTTONDOWN не срабатывает второй раз??
type
 TMyTable = class(TStringGrid)
 private
   procedure WMRButtonDown(var Mes:TWMMouse);message WM_RBUTTONDOWN;
 public
   Constructor Create(AOwner:TComponent);override;
 end;
 TForm1 = class(TForm)
   procedure FormCreate(Sender: TObject);
 private
   { Private declarations }
 public
   { Public declarations }
 end;

var
 Form1: TForm1;

implementation

{$R *.dfm}

{ TForm1 }

constructor TMyTable.Create(AOwner: TComponent);
begin
 inherited Create(AOwner);
end;

procedure TMyTable.WMRButtonDown(var Mes: TWMMouse);
begin
inherited;
Enabled:= not Enabled;
end;

procedure TForm1.FormCreate(Sender: TObject);
var
Table:TMyTable;
begin
 Table:=TMyTable.Create(Self);
 Table.Parent:=self;
 Table.Left:=382;
 Table.Top:=40;
 Table.Show;
end;

end.


← →
clickmaker ©   (2005-10-21 15:17) [1]

потому что задизэйбленный контрол не получает сообщений от мыши и клавы


← →
Quattro ©   (2005-10-21 15:48) [2]

ок....ясно...спасибо



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

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



Память: 0.45 MB
Время: 0.041 c
11-1111257733
rofl
2005-03-19 21:42
2005.11.13
linux + fpc + kol


8-1119786910
Максим
2005-06-26 15:55
2005.11.13
Бинауральные частоты в Delphi


3-1128152089
FH
2005-10-01 11:34
2005.11.13
Возврат значения поля Identity


9-1120030753
Зм1й
2005-06-29 11:39
2005.11.13
Морфинг


1-1130165850
Katya2100000000
2005-10-24 18:57
2005.11.13
Светящийся Label




   Наверх