VLMenuPlus Reference

MethodAddCompositeMessage

See Also See Also Applies To Applies To

Add help messages by specifing the clean caption as well as corresponding help message through a single parameter (composite message). This method is very useful when you want to store the help messages in resource string and want to add them to the control with minimal coding. In fact this is the recommended approach when you want to help messages for a more than a few menu items.

 

Syntax

object.AddCompositeMessage(string)

 

The AddCompositeMethod method syntax has these parts:

Part Description
object An object expression that evaluates to an object of VLMenuPlus type.
String A string expression that evaluates to a string.

 

Sample


Sub Form_Load()
Dim IdStart As Integer
Dim IdEnd As Integer

   IdStart = 2001
   IdEnd = 2050  
   
   For i = IdStart to IdEnd
      VLMnuHlp1.AddCompositeMessage(LoadResString(i))
   Next i
   
   VLMnuHlp1.AddCompositeMessage("Paragraphs|Format paragraph(s)")
End Sub

As you can see, this method can dramatically cut down the size of your code. This method allows you to easily pick up help messages from resource string. This means you can easily change the help strings to provide internationalization support.

 

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.