Maptitude GISDK Help |
An update item is a special type of macro item that is invoked when UpdateDbox() is called from outside the toolbox. This allows the toolbox to update itself when the user switches windows, changes the current layer, etc. The format of an update item definition is:
Update do
<statements go here>
endItem
If Return() is called in the update item of a toolbox, the toolbox closes. UpdateDbox() cannot be called from within the toolbox itself.
Here is an example that enables or disables a tool based on the current layer type:
Update do
typ = GetLayerType()
if type <> "Area" then
DisableItem ("Dot Density Map")
else
EnableItem ("Dot Density Map")
endItem
©2025 Caliper Corporation | www.caliper.com |