Haven't been following this thread, so if this is wrong I apologise but I think Jeremy suggested:
Application.OnIdle := lIdleHandler.IdleHandler instead of Application.OnIdle := lIdleHandler Just as an aside, the other day someone had a query and you suggested that they look at the help. Might I suggest that you take your own advice and get a good Delphi book. Any of the mastering Delphi series by Marco Cantu are good books, and anything by Charlie Calvert would be worth it too. -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Alistair George Sent: Thursday, 3 April 2003 7:26 am To: Multiple recipients of list delphi Subject: [DUG]: Onidle Hello Jeremy, JN> Where were you trying to assign the OnIdle event in main form originally? JN> FormCreate? Yes. Unfortunately I still cannot get the thing to compile I think I did what you suggest here in DPR: program back4winXP; uses Forms, dialogs, mainunit in 'mainunit.pas' {Mainform}, b4winabt in 'b4winabt.pas' {b4winForm}, regunit in 'regunit.pas' {RegForm}, Password in 'password.pas' {PasswordDlg}, mb in 'mb.pas', SortGrid in 'SortGrid.pas', Updater in '..\..\mylib\Updater.pas', VCLZip in '..\..\mylib\ZIP\VCLzip\VCLZip.pas', VCLUnZip in '..\..\mylib\ZIP\VCLzip\VCLUnZip.pas', Sshare in '..\..\Lib\Additional\Sshare.pas'; type TIdleHandler = class(TObject) procedure IdleHandler(Sender: TObject; var Done: Boolean); end; {$R *.RES} procedure TIdleHandler.IdleHandler(Sender: TObject; var Done: Boolean); begin if mainform.ReadyForStealth then Mainform.StealthNow(''); mainform.ReadyForStealth := false; end; var lIdleHandler: TIdleHandler; begin Application.Initialize; Application.Title := 'Back4WinXP'; Application.HelpFile := 'back4winxp.hlp'; Application.ShowMainForm := False; Application.CreateForm(TMainform, Mainform); lIdleHandler := TIdleHandler.Create; Application.OnIdle := lIdleHandler; Application.run; end. -- Regards, Alistair+ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/ --------------------------------------------------------------------------- New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED] Website: http://www.delphi.org.nz To UnSub, send email to: [EMAIL PROTECTED] with body of "unsubscribe delphi" Web Archive at: http://www.mail-archive.com/delphi%40delphi.org.nz/
