1 Reply Latest reply on Oct 23, 2012 9:02 AM by RJKSolutions

    Usign VBA to add controls to a .PDI file

    ainwood

      I want to add a label to a .PDI display when the display is first opened.  I would prefer to use the MSForms label control.  The VBA language reference suggests this method:

       

      Dim oNewLabel as object

       

      Set oNewLabel = ThisDisplay.Symbols.add(pbSymbolControl, "Forms.label.1")

       

      This works, but is extremely limited... Limited to the point where I can't even set the Caption property of the newly created label.  Is there a 'better' way of doing this?  I realise that I can use the other built-in ProcessBook symbols, but I want to make this work because I want to use other forms controls as well.