Delphi and Kylix

Moderators: pritaeas
Number of threads: 7260
Number of posts: 19067

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
Component at runtime Posted by DWDuck on 15 Feb 2011 at 4:12 AM
Hi

I want to create a component at runtime, I can do that very easily. The problem I have is how do I assign a procedure to an event like... onclick?
Darkwing Duck aka DWduck signing off :)
Report
Re: Component at runtime Posted by lerchr on 26 Feb 2011 at 8:58 PM
You assign the method you want to fire to the event handler that you want to trigger it. example.

MyButton1.OnClick := HandleButton1OnClick;
Report
This post has been deleted. Posted by lanxiang on 12 Mar 2011 at 11:09 PM
This post has been deleted.



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.