Total Commander Forum Index Total Commander
Форум поддержки пользователей Total Commander
Сайты: Все о Total Commander | Totalcmd.net | Ghisler.com | RU.TCKB
 
 RulesRules   SearchSearch   FAQFAQ   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Single Post  Topic: Delphi. Как присвоить обработчик события в runtime? 
Author Message
Dec



PostPosted: Tue Oct 02, 2007 11:35    Post subject: Reply with quote

Code:
procedure _OnTimer_(Sender: TObject);
begin
  MessageBeep(0);
end;

var M: TMethod;
begin
  with TTimer.Create(Self) do begin
    M.Code := @_OnTimer_;
    OnTimer := TNotifyEvent(M);
  end;
end;
View user's profile Send private message


Powered by phpBB © 2001, 2005 phpBB Group