formhelp MenuItem property
Return to Introduction  Previous page  Next page
Applies to
acFormHelp component as subproperty of WhatsThis structure.  

Declaration
property MenuItem: TComponent;  

Description
The MenuItem property points to the "What's This?" menu item (in any menu, main or popup). When user clicks this menu item, the cursor will be changed to a question mark with a pointer.  
 
If the user then clicks a control in the form, the control receives a WM_HELP message to show the context-sensitive help taken from secondary part of the Hint property.  
 
tip When you point this property to the menu item, you don't need to handle OnClick event of this element of menu. The FormHelp will handle if for you automatically. However, if you need to specify many "What's this?" menu items — call the InvokeHelpPointer method in the OnClick event handler of this menu item, without pointing this property to it.  
 
iiinfo As you can see, not only standard MenuItems can be assigned to this property. You associate to it ANY component which has "Checked" or "Down" property (anything that can reflect the state of boolean value).  

See also
ToolbarButton property and InvokeHelpPointer method.