Version

Customize Tool Captions in the Run-Time Customizer

At run-time a user can customize the tools on a toolbar, such as setting shortcut keys or reading a description of the tool. You can use the CustomizerCaption property of the tool, which returns or sets the string that will appear in the Customize dialog’s Commands list.

To customize a tool’s run-time customizer caption at design-time:

  1. Add the UltraToolBarsManager to a form, right click and choose Customize.

  2. In the editor, select a tool in the Tool tab and under SharedProps set the CustmizerCaption property.

To customize a tool’s run-time customizer caption at run-time.

In Visual Basic:

Private Sub Customize_Tool_Captions_in_the_Run_Time_Customizer_Load( _
  ByVal sender As System.Object, _
  ByVal e As System.EventArgs) Handles MyBase.Load
	Me.UltraToolbarsManager1.Toolbars(1).Tools(0).SharedProps.CustomizerCaption = _
	  "New Caption"
End Sub

In C#:

private void Customize_Tool_Captions_in_the_Run_Time_Customizer_Load(object sender,
  EventArgs e)
{
	this.ultraToolbarsManager1.Toolbars[1].Tools[0].SharedProps.CustomizerCaption =
	  "New Caption";
}
Note
Note

If the CustomizerCaption property is not set, then the value of the tool’s Caption property will be displayed. If that property is not set, then the value of the tool’s Key will be displayed.