FactoryTalk SE and Page Up/Down Buttons

shutout31

Member
Join Date
Mar 2010
Location
canada
Posts
6
I am trying to have multiple control List Selectors actuated/Functioned from one up and one down button to cycle scrolling. The output function of the Control List is only used on one however we are using multiple lists only for formatting purposes. I need to be able to point to each control list and send the function. Any suggestions either with XML or VBA?
 
There are several issues you have to solve:

a) Move Up and Move Down buttons only have effect over the object with focus or a linked object.
b) ControlListSelector object doesn't expose its methods to VBA. So there are no MoveUp or MoveDown methods.
c) You can select Type Info Extension on ExposeToVBA property and try to reach the ControlListSelector through Application.ActiveDisplay.Elements. But again it's a dead end.
d) The best approach is using SetElementFocus and SendKeys. Suppose you have two buttons and two ControListSelectors:

Code:
Private Sub btnUp_Released()[INDENT] Application.ActiveDisplay.SetElementFocus (FirstControlListname_here)
SendKeys "{Up}"
Application.ActiveDisplay.SetElementFocus (FirstControlListname_here)
SendKeys "{Up}"
[/INDENT]End Sub

Private Sub btnDown_Released()[INDENT] Application.ActiveDisplay.SetElementFocus (SecondControlListname_here)
SendKeys "{Down}"
Application.ActiveDisplay.SetElementFocus (SecondControlListname_here)
SendKeys "{Down}"
[/INDENT]End Sub
Of course, this code works if both ControlList objects are pointing to the same item.
 

Similar Topics

Hello All, I've set the Alarm display to be "on top" whichever display is currently on whenever an alarm trigger occurs, this works well. But I...
Replies
5
Views
1,709
I am needing to display a local svg file that is constantly updating within my runtime application. My file is located as...
Replies
8
Views
3,270
Hi all, i know this seems to have been asked alot but i cant find a solution. I have an HMI application and it has no login for users, its an...
Replies
12
Views
10,903
Hi, When comissioning engineers need to fine-tune parameters such as timers and some process tolerances and such-like, I sometimes have to...
Replies
8
Views
7,172
I have two identical machines running similar HMI projects, the only difference is one is done in FactoryTalk View Version 10 and the other is...
Replies
3
Views
101
Back
Top Bottom