ArcPad Scripting Object Model
Caption Property
See Also  Example  Send comments on this topic.
ToolItem Collection : Caption Property

Glossary Item Box

Description

Returns or sets the caption to display for the menu item

Property type

Read-write property

Syntax

object.Caption

Return Type

String

Remarks

This caption property only works when the ToolItem object represents a menu item in a tool item's dropdown list.

Example

Change the Caption of a menu item
ToolItem Example (VBScript)Copy Code
In this example the custom menu item is located on the custom toolitem ("My Tool")'s dropdown list.
We want to change its caption from "testitem" to a more meaningful one "Find Parks".

Sub

Dim Btn1

Set Btn1 = Application.ToolBars("My Toolbar")("My Tool")("testitem")
Btn1.caption = "Find Parks"

End Sub

See Also

© 2013 All Rights Reserved.