Wednesday, March 2, 2011

Search for help...

Looking for a way to open your application's help file to it's search window? All you have to do is pass the name (and the path) of your help file and the string you want to search for to the following HelpSearch() function:

procedure HelpSearch(
  sSearchKey : string );
  pc : PChar;
  Application.HelpFile := sHelpFName;
  pc := StrAlloc(
          Length( sSearchKey ) + 1 );
  StrPCopy( pc, sSearchKey );
    HELP_PARTIALKEY, LongInt( pc ) );
  StrDispose( pc );
For example:
HelpSearch( 'DELPHI.HLP', 'colors' );
If you just want to open the "search" window without specifying a search string:
HelpSearch( 'DELPHI.HLP', '' );

Twitter Delicious Facebook Digg Stumbleupon Favorites More

Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum