اضافة خاصية dblclick الىtbutton
#3
هكدا
PHP كود :
unit Unit1;

interface

uses
  Windows
, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
 
 Dialogs, StdCtrls;

type
  TButton 
= class(StdCtrls.TButton)
 
 private
    procedure WMLButtonDblClk
(var Message: TWMLButtonDblClk); message WM_LBUTTONDBLCLK;
 
 end;

type
  TForm1 
= class(TForm)
 
   Button1: TButton;
 
   Button2: TButton;
 
 private
    
{ Private declarations }
 
 public
    
{ Public declarations }
 
 end;

var
 
 Form1: TForm1;

implementation

{$R *.dfm}

{ 
TButton }

procedure TButton.WMLButtonDblClk(var Message: TWMLButtonDblClk);
begin
  ShowMessage
('Db Test');
end;

end. 

انتبه الحدث سستأثر به كل الأصناف الشبيهة
سبحان الله وبحمده سبحان الله العظيم
[-] كل من 1 user says قال شكرا ل Agmcz على المشاركة المفيدة
  • jeanjamil
الرد


الردود في هذا الموضوع
اضافة خاصية dblclick الىtbutton - بواسطة jeanjamil - 07-04-2017, 10:24 AM
RE: اضافة خاصية dblclick الىtbutton - بواسطة Delphi4Us - 07-04-2017, 01:15 PM
RE: اضافة خاصية dblclick الىtbutton - بواسطة Agmcz - 07-04-2017, 03:11 PM

التنقل السريع :


يقوم بقرائة الموضوع: بالاضافة الى ( 1 ) ضيف كريم