TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JUD MCCRANIE
from: FRANK MALCOLM
date: 1997-08-23 23:50:00
subject: Re: OBJECT INSP- SOURCE

Hi, Jud.
JM>  CM> Why not declare your procedure in the Class, then pick it in the 
OnSho
JM>  CM> Event from the down arrow list? Don't double click the event... This
JM>  CM> way your procedure (subroutine) gets called from the OnShow Event.
JM> I originally did this, but the problem (and point of the thread)
JM> is that it doesn't explicitly show the call to my subroutine in
JM> the source.
correct, it's hidden in the underlying object. Have you got the VCL
source? It's well worth it just to see how they do all this stuff. It
contains...
procedure DoShow;
if Assigned (FOnShow) then FOnShow (Self);
end;
FOnShow is the field corresponding to the OnShow event. Assigned is
simply a test for  nil.
Regards, fIM.
---
 þ * þ Are part-time band leaders semi-conductors?
---
---------------
* Origin: Pedants Inc. (3:712/610.24)

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