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

Glossary Item Box

Description

Returns or sets a value that determines whether the toolbar is visible.

Property type

Read-write property

Syntax

object.Visible = [ value ]

Return Type

Boolean

Example

IsToolBarPresent returns True if the specified toolbar is present; False if not. HideToolBar hides the specified toolbar if it is present.
ToolBar Example (VBScript)Copy Code
Function IsToolBarPresent (strTBName)
  Dim blnExists
  blnExists = False
  For each T in Application.Toolbars
    If T.Name = strTBName Then
      blnExists = True
      Exit For
    End If
  Next
  IsToolBarPresent = blnExists
End Function

Sub HideToolBar (strTBName)
  If IsToolBarPresent (strTBName) Then
    Application.ToolBars(strTBName).Visible = False
  End If
End Sub

See Also

© 2012 All Rights Reserved.