DIAdem Help

Object: TextBox

  • Updated2024-09-12
  • 1 minute(s) read

Object: TextBox

The TextBox object provides access to a Textbox in DIAdem VIEW. You display text and variable contents in the TextBox object.

The following example creates a textbox with the current date, in the active area:

VBScriptPython

 

Dim oMySheet, oMyChart, oMyObj, oMyFont
Call View.NewLayout()
Set oMySheet = View.ActiveSheet
oMySheet.ActiveArea.DisplayObjType = "TextBox" 
Set oMyObj = oMySheet.ActiveArea.DisplayObj
oMyObj.Text= "Current time: @CurrDate@"
Set oMyFont = oMyObj.Font
oMyFont.Size = 36
oMyFont.Name = "Arial"
oMyFont.Bold = "True"

Returned From

Area.DisplayObj