DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: Caption for ActionObjPopup

Property: Caption for ActionObjPopup

Specifies the label of a bar element. Use the Style property to specify the label.

Object.Caption
ObjectActionObjPopup
Object with this property
Object.CaptionString with read and write access

The following example adds a button to the DIAdem SCRIPT group bar. The button opens the subbar ANAMain. The example assigns a graphic, a label, and a tooltip to this button.

VBScriptPython

 

Dim oMyActionObj
If not (BarManager.ActionObjs.Exists("MyPopup")) Then
  Set oMyActionObj = BarManager.ActionObjs.Add("MyPopup", "CustomPopUp") 
  oMyActionObj.Picture = "favicon.ico"
  oMyActionObj.Caption = "Math"
  oMyActionObj.Tooltip = "Opens ANAMain"
  oMyActionObj.BarID   = "ANAMain"
End If
Call BarManager.Bars("SCRGroup").UsedActionObjs.Add(oMyActionObj)
BarManager.Bars("SCRMain").Style = eBarStyleIconCaptionBelow
In This Section
Was this information helpful?