TIP: Click on subject to list as thread! ANSI
echo: delphi
to: JUD MCCRANIE
from: FRANCOIS PIETTE
date: 1997-08-16 09:29:00
subject: RE: OBJECT INSP- SOURCE

Salut Jud McCranie !
Dans un message de Jud McCranie dat‚ du 13 Aug 97  22:37:00 il ‚tait dit:
  JM> I had a subroutine called InitDatathat I put in the OnShow
  JM> event in the Object Inspector (OI).That was working OK. But then later
  JM> in the development process I had another subroutine that I wanted to
  JM> call right after the call to InitData. But there is no call to InitData
  JM> in thesource code - only the reference to it in the form's OnShowevent
  JM> in the OI. So you have to remove the reference to InitData in the OI,
  JM> double click on the field, and then put thecall to InitData in the
  JM> source code, and add the call to the newsubroutine. It would be nice
  JM> if there was a way to make Delphimove the call to your subroutine to
  JM> the source code, rather thanyou having to remove it in the OI, double
  JM> click, and add it manually.
Actually you misuse the Object Inspector :-) In place of writing your 
procedure name in the OI, just double click then OnShow when it is blank. 
Delphi will create for you a new empty procedure where you can call 
your own procedure InitData and later add a call to your second 
procedure.
Amiti‚s,
{-Francois Piette-}
francois.piette@ping.be
http://www.rtfm.be/fpiette
--- SvFido 1.32
---------------
* Origin: OverByte BBS (Embourg-Belgium) 32-4-3651395 VFC/V34+ (2:293/2202)

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