Object: TextBox
- Updated2024-09-12
- 1 minute(s) read
(Area | Areas | BirdsEyeView | Bode | Cascade | ChannelTable | Contour | CurveChart2D | Dialog | DisplayObj | Map | Orbit | Picture | Polar | ShaftCenterline | Sheet | TextBox | Video) > Area > Object: TextBox
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:
| VBScript | Python |
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"
Properties
Alignment | Area | BkColor | BkColorRGB | Color | ColorRGB | Font | ShowScrollBars | Text | ToolbarVisible | WordWrap