Scrolling 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 scrolling text object is used to display information.  It allows scrolling up or down for larger amounts of text.

Though the Scrolling Text has no event trigger, by naming it starting with DA_ the code will be ran when analog data arrives (as with all object names).  In this code example, when analog data arrives, it adds the value and time of the arriving data to itself.

bulletCreating:
oText.ObjName=L,T [,W,H,text,back color,text color,font size]
!POBJ oSText.sText1=5,70
!POBJ oSText.sText2=5,60,20,50,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. Use \n to insert carriage returns.

Add Text (.Add)

Adds text to the scrolling text box.  Use \n to add carriage returns. Commas MAY be used.
!POBJ objName.Add=string
!POBJ SText2.Add=This is an add, ok?


Clears the value
!POBJ objName.Clr 
!POBJ SText2.Clr

Text Tip (.Tip)
Sets the text pop-up tip
!POBJ objName.Tip=Text string
!POBJ
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 SText2.M=50,50,,10

Set Focus (.SF)
Sets the current focus of the application to the object
!POBJ objName.SF
!POBJ SText2.SF
 
bulletUpdate Value (.Update or .U)
Sets the value which will be used to update the object whenever a !POBJ Update is performed.
!POBJ obj.Name.U=[text]
!POBJ SText2.U=(AMAX)

bulletCode Event - (.C or .Code)
No events

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.