DIAdem Help

Content Type
Programming Language
Current manual
Table of Contents

Property: Tooltip for ActionObjButton

Property: Tooltip for ActionObjButton

Specifies the tooltip for a bar element. If you idle the mouse on a bar element, the tooltip appears.

Object.Tooltip
ObjectActionObjButton
Object with this property
Object.TooltipString with read and write access

The following example adds a button to the toolbar in DIAdem SCRIPT. The example assigns a graphic and a tooltip to the button.

VBScriptPython

 

Dim oMyActionObj
If not (BarManager.ActionObjs.Exists("MyButton")) Then
  Set oMyActionObj = BarManager.ActionObjs.Add("MyButton", "CustomButton") 
  oMyActionObj.Picture = "favicon.ico"
  oMyActionObj.Tooltip = "MyButton"
End If
Call BarManager.Bars("SCRMain").UsedActionObjs.Add(oMyActionObj)
In This Section
Was this information helpful?