Jud McCranie mentioned this to Gary Weinfurther:
JM> It would be nice if there was a way to make Delphi
JM> move the call to your subroutine to the source code, rather than
JM> you having to remove it in the OI, double click, and add it
JM> manually.
Event handlers that are entered via the Object Inspector *are* in the source
code. It's only the assignments of those to events that are kept in the form
file. You can easily set those yourself in code:
Edit1.OnKeyPress := MyKeyPressEvent;
But why would you want to do this all the time? It's nice to have the
flexibility to do it in code if you need to, and not if you don't.
...Gary
--- GoldED 2.41
---------------
* Origin: The Flying Circus BBS, Farmington Hills, MI, USA. (1:2410/905)
|