Mega Code Archive

 
Categories / Delphi / Files
 

How to display the full text search tab of a help file

Title: How to display the full text search tab of a help file Question: You know how to display the table of contents of a help file, but how can you switch directly to the full text search tab? Answer: You can use the Winhelp macro "Find()". Here is an example: procedure TForm1.ShowFulltextsearch; var command: array[0..255] of Char; begin command := 'FIND()'; {Ensure that the Application.HelpFile is displayed} application.helpcommand(HELP_FORCEFILE, 0); {Open the finder window and switch to the search tab} application.helpcommand(HELP_COMMAND, Longint(@command)); end; -------------------------------------------------------------- This is an excerpt of "All about help files in Borland Delphi" (2000 EC Software) available on http://www.ec-software.com --------------------------------------------------------------