VLMenuPlus Reference

MethodAddMessage

See Also See Also Applies To Applies To

Add help messages for menu items by specifing the menu caption and corresponding help message. This method is is typically used when you want to add a few messages, otherwise recommended method (to minimize the code that you need to write) is to use AddCompositeMessage .

 

Syntax

object.AddMessage(ByVal sMenuCaption As String, ByVal sHelpMessage As String)

 

The AddMethod method syntax has these parts:

Part Description
object An object expression that evaluates to an object of VLMenuPlus type.
sMenuCaption A menu caption string.
sMessage A help string corresponding to the menu item specified by sMenuCaption.

 

Sample


Sub Form_Load()
   Call VLMemnuPlus1.AddMessage("SCAN", "Starts scanning a document" )
   Call VLMemnuPlus1.AddMessage("Delete", "Deletes selected page")
   Call VLMemnuPlus1.AddMessage("Paragraphs", "Format paragraph(s)")
End Sub

Remarks

For more details on clean caption refer to "How does it work ?"

When tooltips are enabled, the control will use the help message if no tooltip was specified for a menu item.