Property: Caption for ActionObjPopup
- Updated2024-09-12
- 1 minute(s) read
Bar Manager > Properties > 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
Object | ActionObjPopup Object with this property |
Object.Caption | String 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.
VBScript | Python |
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