Вниз
Скачать: 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.024 c
2-1130224792
Quest
2005-10-25 11:19
2005.11.13
Работа с Формами


2-1129983763
Ромио
2005-10-22 16:22
2005.11.13
Office


3-1128090576
Int64
2005-09-30 18:29
2005.11.13
Версия ADO в MDAC 2.8


2-1129558566
Dush
2005-10-17 18:16
2005.11.13
inherited


14-1130097982
LordOfRock
2005-10-24 00:06
2005.11.13
Opera 8.5/9.0




   Наверх