[Previous] [Contents] [Index] [Next]

PxHelpSearch()

Search the help information

Synopsis:

#include <photon/PxHelp.h>

int PxHelpSearch( char *string,
                  int mode,
                  int scope,
                  int method );

Description:

Use PxHelpSearch() to search for a string in the online help information. The arguments are similar to the fields in the Helpviewer's Search pane, and are as follows:

string
The string you're looking for.
mode
One of the following:
scope
One of the following:
method
One of the following:

PxHelpSearch() spawns the Helpviewer if it isn't running, or sends a message to the Helpviewer if it is.

Returns:

0 on success, or -1 if the Helpviewer couldn't be found or spawned.


Note: PxHelpSearch() returns immediately, before the search is complete.

Examples:

PxHelpSearch( "console", HELP_SEARCH_MODE_TITLE,
              HELP_SEARCH_SCOPE_ALL,
              HELP_SEARCH_METHOD_SUBSTRING );

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PxHelpQuit(), PxHelpTopic(), PxHelpTopicRoot(), PxHelpTopicTree(), PxHelpUrl(), PxHelpUrlRoot()

Context-Sensitive Help chapter of the Photon Programmer's Guide


[Previous] [Contents] [Index] [Next]