TIP: Click on subject to list as thread! ANSI
echo: delphi
to: GARY WEINFURTHER
from: JUD MCCRANIE
date: 1997-08-15 14:37:00
subject: RE: OBJECT INSP- SOURCE

 GW> Event handlers that are entered via the Object Inspector *are* in the 
 GW> source code.
I entered my own subroutine into the OI event list, and it
definitely was not in the source code.  If I double click on the
field then it creates the shell of a subroutine in the source
code.
 GW>  It's only the assignments of those to events that are
 GW> kept in the form file.  You can easily set those yourself in code:
Yes, but once you set them (properties or events) in the OI,
there is no easy way to move them to the source code, AFAIK.
And the user can't easily read or edit the form file.
 GW> But why would you want to do this all the time?
You wouldn't want to do it all of the time.  But I think it is
easier to see what is happening in the program if such things
are written into the source file.  Like when I wanted to find
where my subroutine was called (to add something right after
it), and it isn't anywhere in the source.
 GW> It's nice to have the
 GW> flexibility to do it in code if you need to, and not if you don't.
Yes, but it would be nicer to be able to go from one to the
other.  I haven't written any big programs in Delphi yet, but
I've written plenty of other big programs.  I believe that I'm
going to need to see the things written into the source, to
follow the logic of the program.  So, for that reason, from now
on I'm planning to double click on the event field and create
the shell subroutine and put the code there, rather than calling
it from the OI.  But that is still not going to be perfect
since there's no explicit call to e.g. ShowForm in the source
file.
Jud McCranie  jud.mccranie@camcat.com
 * Silver Xpress V4.3 SW20178
--- PCBoard (R) v15.3/M 5
---------------
* Origin: Riverdale, Ga (1:133/9024)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.