الاخوة الكرام هل من احد يتبرع ويشرح ولو شرح بسيط عن ماهو sender ؟
, وجزاكم الله خير.
الاخوة الكرام هل من احد يتبرع ويشرح ولو شرح بسيط عن ماهو sender ؟
, وجزاكم الله خير.
السلام عليكم
لم اجد شرحا افضل مما هو في Delphi Help .
اقتباسIn an event handler, the Sender parameter indicates which component received the event and therefore called the handler.Sometimes it is useful to have several components share an event handler that behaves differently depending on which component calls it.
مثال :
procedure TForm1.Button2Click(Sender: TObject); begin if Sender = Button1 then form1.Caption := 'Button1' else form1.Caption := 'Not Button1'; end; procedure TForm1.Button1Click(Sender: TObject); begin button2.OnClick(sender); end; procedure TForm1.Button3Click(Sender: TObject); begin button2.OnClick(sender); end;
(f)
CIONO1
هناك حتى الأحلام أصبحت ممنوعة ...
إنه لعار أن ننتمي لهكذا أوطان ... لكن ... ربما العار أن نكون نحن أبناء لتلكم أوطان .. من يدري ؟!!
ليعلم أولئك ... إنّ الشعوب إنْ هي استيقظت تسحق ظُلامََهَا ...
There, even in dreams u r wanted
To be a programmer, how a nice dream it was
Leaving ...
أعيدوا لإسمي لونه المفضل
الاخ تما انا آسف لتاخري بالرد... فجزاك الله خير على الافاده والرد,,مشكوووووور
هذا الموضوع مغلق.