2 Replies Latest reply on Apr 17, 2012 2:47 PM by T13856

    PBSymbLib.Text how to change properties


      I would like to be able to insert text at the top of my display as a title. When adding buttons or a trend i have created an instance of a ButtonDefinition or a TrendFormat. There doesnt appear to be an equivalent for text and setting Text.SetName("Title") doesnt appear to change it. At the moment when i have added the Text to the display it reads "Sample Text"


      My code:


                  Dim oTitleText As PBSymLib.Text
                  Dim oSymbol_text1 As PBObjLib.Symbol

                  oSymbol_text1 = newwindow.Symbols.Add(PBObjLib.pbSYMBOLTYPE.pbSymbolText)
                  oTitleText = oSymbol_text1
                  oSymbol_text1.Font.Size = 20
                  oSymbol_text1.Top = 15000