Product Documentation
Cadence User Interface SKILL Reference
Product Version IC23.1, September 2023

hiHelp

hiHelp( 
s_objType
S_objName 
[ g_objDetail ]
[ g_moreDetail ]
)
=> t / nil 

Description

Constructs a help symbol from its arguments and invokes the Doc Assistant API to display the help document associated with the help symbol. If the hiHelpAction property is set, hiHelp executes the callback associated with the property, instead of calling the Doc Assistant API. hiHelp is the main service routine for the online help system.

Clicking on a help button in a Virtuoso application invokes a call to hiHelp(). You can also execute hiHelp() from the CIW, as a callback from a form selection menu, or as a call from any SKILL procedure.

Arguments

s_objType

Symbol that identifies the category of the help request. s_objType is one of the following: ‘form, ‘menu, ‘command, ‘window, ‘dbox, ‘helpError.

S_objName | g_objDetail | g_moreDetail

The meanings of these arguments depend upon the value of objType as defined below:

objType objName objDetail moreDetail

‘form

form name

nil

Returns nil if the Help button is clicked.

Displays symbol name of the field if the Help or F1 key is pressed when the cursor is over a field.

‘hiFormNoField if the Help or F1 key is pressed when the cursor is not over a field.

‘menu

menu name

nil

NA

‘command

command name

command argument

NA

‘window

help string set on the window or the application name set on the window

window ID

Displays the current command name.

‘dbox

dialog box name

NA

Returns nil if the Help button is clicked.

Displays the symbol name of the field if the Help or F1 key is pressed when the cursor is over a field.

Returns ‘hiFormNoField if the Help or F1 key is pressed when the cursor is not over a field

‘helpError

error name

NA

NA

Values Returned

t

The function is successful.

nil

There was an error.

Examples

In the following menu, myMenu:

the HELP menu item is programmed with the following callback:

hiHelp( ’menu "myMenu")

When a user selects HELP, the request generates the help symbol myMenu. If the application ID is exampleApp, then the Doc Assistant API looks for the help symbol myMenu in exampleApp.tgf and displays the document associated with it.

Additional Information

At first, hiHelp() checks the hiHelpAsstTool and hiHelpAsstTag properties of objName. properties. If valid values are found for these properties, hiHelp() uses these values to reference a .tgf file and displays the help document in Task Assistant.

If these properties are not set or are set to invalid values, hiHelp() proceeds as explained below:

Related Topics

Online Help Functions


Return to top
 ⠀
X