Resize Trend VCR buttons for FactoryTalk View SE

lunenburger

Member
Join Date
Jul 2008
Location
Summerside
Posts
207
Does anyone know if it is possible to resize the VCR buttons for the Standard FactoryTalk View SE buttons?
I find they are too small for our touch screens, and the operators have a hard time scrolling through the trends.
I have looked in all the properties I can find, and I can't see anything....
 
You can create your own buttons. Under "Objects/Key", then link the button to the trend.
I think you'll lose some functionality (jump to end of trend) using those keys, but they are much easier to press from a touchscreen.
 
I'll generally include some buttons to set the timespan to fixed increments, 5min, 15min, 30min, 1hr, 4hr, 8hr, plus some pan left/right buttons. I also use a popup window to select which tags are displayed, with a list of toggle on/off buttons that auto-populate from the pens configured on the trends.

VBA is the best way to handle all of that.
Another trick with VBA, is to always save the current view before shutting down the display, and reloading that on re-opening the display.
 
Here is some of the VBA Code for examples, just a couple ways to basically manipulate the trend display.

Code:
Code for actual trend display:

Private Sub btn30Min_Released()
On Error Resume Next

    Trend_Line.XAxis.TimeSpan = 30 * 60

End Sub
Private Sub btn2Hrs_Released()
On Error Resume Next

    Trend_Line.XAxis.TimeSpan = 2 * 60 * 60
    
End Sub

Private Sub Display_AnimationStart()
    On Error GoTo ErrHandler
    Trend.LoadTemplate ("Last_View")
ErrHandler:
End Sub

Private Sub Display_BeforeAnimationStop()
    On Error GoTo ErrHandler
    Trend.SaveTemplate ("Last_View")
ErrHandler:
End Sub
-------------------------------------------------------

Pen Selector Code:
Note that all buttons on pen-selector popup windows are just plain buttons.  Give them a name, but they have no actions.  Set as VBA control.

'On animation start of the popup window:
'Note that popup needs to find the window with the trend on it

'General
Dim oDS As Displays
Dim oTrendDisp As Display


Private Sub Display_AnimationStart()
On Error GoTo ErrHandler
    
    Set oDS = LoadedDisplays
    Set oTrendDisp = oDS.Item("history1")
    
    SetPenStates oTrendDisp.Trend.Pens.Item(1), PB_ToggleP01
    SetPenStates oTrendDisp.Trend.Pens.Item(2), PB_ToggleP02
'.....
Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer
    
End Sub

'Set pen states pulls info from the actual trend pen settings:
Private Sub SetPenStates(thePen As Pen, thePB As Button)
On Error GoTo ErrHandler
    
    thePB.Caption = thePen.Description
    If thePen.Visible Then
        thePB.BackColor = 32768
        thePB.ForeColor = 16777215
    Else
        thePB.BackColor = 8421504
        thePB.ForeColor = 0
    End If

Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer

End Sub


' Pressing a Pen Toggle Button on the popup calls the toggle states function for the associated pen:
Private Sub PB_ToggleP01_Released()
On Error GoTo ErrHandler

    TogglePen oTrendDisp.Trend.Pens.Item(1), PB_ToggleP01
Exit Sub
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Pen Index Error", ftDiagSeverityError, ftDiagAudienceEngineer


End Sub


' Toggle the actual pen passed in and set the button state:
Private Sub TogglePen(thePen As Pen, thePB As Button)
On Error GoTo ErrHandler
    
    If thePen.Visible Then
        thePen.Visible = False
        thePB.BackColor = 8421504
        thePB.ForeColor = 0
    Else: thePen.Visible = True
        thePB.BackColor = 32768
        thePB.ForeColor = 16777215
    End If
Exit Sub
    
ErrHandler:
    LogDiagnosticsMessage Err.Description & " Pensel.gfx Error", ftDiagSeverityError, ftDiagAudienceEngineer


End Sub
 

Similar Topics

Greetings experts, I'm attempting to create a custom LED control in TwinCAT HMI, and for the life of me I cannot get the thing to resize after I...
Replies
0
Views
1,160
I'm using the show symbol animation to open the pop-up and then the show content function to switch industrial graphics into the same window...
Replies
1
Views
1,930
Hello All, I have a question regarding the pop-up dialog boxes in Logix5000, specifically for MSG instruction configuration. My pop-up window...
Replies
3
Views
1,483
Hello, I'm using Logix5000 v24. I've got a large array of an UDT that I'm using for a recipe. I recently added a few more tags to the recipe UDT...
Replies
0
Views
2,573
I am working with a FactoryTalk application where I have multiple displays on the screen. I want to add a button that will allow the user to...
Replies
2
Views
2,096
Back
Top Bottom