Mega Code Archive

 
Categories / Delphi / Examples
 

Close the help automatically when closing application

Title: close the help automatically when closing application? { When I close my app, the Help Window (if it happens to still be active) does not automatically close also! To close the help when the app close, use this line of code: Wenn man die eigene Anwendung schliesst, wird das Fenster von der Hilfe nicht automatisch auch geschlossen. Um die Hilfe automatisch zu schliessen braucht es diesen Aufruf: } procedure TForm1.FormDestroy(Sender: TObject); begin Application.HelpCommand(HELP_QUIT, 0); end;