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)
|