formhelp InvokeHelpPointer method
Previous  Top  Next
Applies to
FormHelp component.  

Declaration
procedure InvokeHelpPointer;  

Description
The InvokeHelpPointer method changes the cursor to a question mark with a pointer. If the user then clicks a control in the form, the control receives a message to show the context-sensitive help taken from secondary part of the Hint property.  

Example
procedure TForm1.Button2Click(Sender: TObject);  
begin  
  FormHelp1.InvokeHelpPointer;  
end;  

tip The InvokeHelpPointer procedure is equal to SendMessage(FormHandle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0). So example above is equal to following code:  

procedure TForm1.Button2Click(Sender: TObject);  
begin  
  SendMessage(Handle, WM_SYSCOMMAND, SC_CONTEXTHELP, 0);  
end;  

See also
MenuItem and ToolbarButton properties of the WhatsThis structure.