TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JUD MCCRANIE
from: CHRIS MANN
date: 1997-08-19 08:38:00
subject: RE: OBJECT INSP- SOURCE

On Aug 18 13:37 97, Jud McCranie of 1:133/9024 wrote:
 GW>> Jud McCranie mentioned this to Gary Weinfurther:
 JM>>> I entered my own subroutine into the OI event list, and it
 JM>>> definitely was not in the source code.  If I double click on the
 JM>>> field then it creates the shell of a subroutine in the source
 JM>>> code.
 GW>> You have me confused.  What's the difference?
 JM> First method I enter the name of my subroutine in the OI
 JM> ShowForm event field.
 JM> Second method double click on the OI ShowForm field and it will
 JM> create the shell of a subroutine TForm1.ShowForm, and you can
 JM> enter the call to your subroutine there.
 JM> The first method is a little more convenient to do (initially -
 JM> that is), and the second seems a little stupid since it makes a
 JM> subroutine that only calls another subroutine.  However, in the
 JM> long run it seems that the second method is better since then
 JM> there is an explicit call to the user's subroutine in the source
 JM> code file.
Why not declare your procedure in the Class, then pick it in the OnShow Event 
from the down arrow list? Don't double click the event... This way your 
procedure (subroutine) gets called from the OnShow Event.
Chris
--- Msgedsq 2.2e
---------------
* Origin: Esc1.71 - When you're old enough to drive the bus. (1:157/534.30)

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™.