Text Object
Home ] Up ] General Object Information ] Label Object ] Button Object ] [ Text Object ] Banner Object ] Scrolling Text Object ] List Object ] Drop-Down Object ] Check Box Object ] Plotting Object ] Slider Object ] Bar Object ] Meter and Gauge Objects ] Image Object ] Image Button Object ] Back, Timers and Reset Objects ]

The text objects is normally used to indicate or for interactive input with the user.

Simply drag and drop an oText object onto an open plot background.

When the text box loses focus (tab off for example), the event will be triggered changing the analog plot span in this case.

Note that when the text box has focus (cursor is in it), the text will be in bold.  Its StampPlot value will not change until it losses focus.  This allows users to enter data that may be read by the controller without reading erroneous data.

bulletCreating:
oText.ObjName=L,T [,W,H,text,back color,text color,font size]
!POBJ oText.Text1=5,70
!POBJ oText.Text2=5,60,20,10,Hello,12,14,
14

bulletFunctions:
SET Value (.Set or omitted)
!POBJ objName = [text,back color, text color, font size]
!POBJ Text1.Set=Change!
!POBJ Text2=Bye!,14,12,10

Use no commas in the text.  

Clear (.Clear or Clr)
Clears the value
!POBJ objName.Clr 
!POBJ
Text2.Tip=This is a tip!

Font (.Font or .F)
Sets the font of the object
!POBJ objName.Font=[Font name,size,italic (0/1),bold (0/1)]

Move (.Move or .M)

Moves the object to new coordinates/changes sizing
!POBJ objName.Move=[L,T,W,H]   or !POBJ objName.M=[L,T,W,H] 
!POBJ
Sets the current focus of the application to the object
!POBJ objName.SF
!POBJ Text2.SF
 
bulletUpdate Value (.Update or .U)
Sets the value which will be used to update the object when ever a !POBJ Update is performed.
!POBJ obj.Name.U=[text]
!POBJ Text2.U=(AMAX)

bulletCode Event - (.C or .Code)
Activated by a click.
objName.Code=string of code.

bulletValues
(objName) - Value of text.  Not updated until the user tabs off or clicks elsewhere.
(objName.T) - Top coordinate
(objName.L) - Left coordinate
(objName.W) - Width
(objName.H) - Height
(objName.B) - Bottom coordinate
(objName.R) - Right coordinate
(objName.BC) - Background Color
(objName.FC) - Text or foreground color
(ME) - Used only in its event code, returns object name.
((ME)) - Used only in its event code, returns object value.