25-03-2010, 04:54 PM
و عليكم السلام و رحمة الله و بركاته
1- بإطلاعك على List of Virtual Key in delphi
2- بالإظافة إلى توضيحات بخصوص التوجيه message
نستطيع الآن أن نحدد عمل كل زر 'Button' تم الضغط عليه ! , كيف ?? مثال للتوضيح :
Chr : تقوم بتحويل المتغير (0-255) , الى الرمز المكافئ له في جدول AsciiCode
بالتوفيق ,,
1- بإطلاعك على List of Virtual Key in delphi
2- بالإظافة إلى توضيحات بخصوص التوجيه message
نستطيع الآن أن نحدد عمل كل زر 'Button' تم الضغط عليه ! , كيف ?? مثال للتوضيح :
PHP كود :
type
TForm1 = class(TForm)
private
{ Private declarations }
public
{ Public declarations }
procedure KeyPressed(Var uMsg:TMSG ); Message WM_CHAR;
end;
var
Form1: TForm1;
implementation
{$R *.dfm}
procedure TForm1.KeyPressed(Var uMsg:TMSG );
Begin
ShowMessage(Chr(uMsg.message));
End;
بالتوفيق ,,
I'M Fly Like A G6

