Hello everyone,
I wanted to add a new tab in the detail of the facplate, but looking at the animation and the configuration of the detail of the faceplate, I can not understand how it works.
I looked in the animation and in the script of the detail of the faceplate but without any result, I can not understand how the TabMain changes in run mode with this tab.
Is someone has already worked on a detail of facplate and that he made such a change?
An example of the detail of the faceplate that I want to modify it:
Run Mode:
Edit mode:
Detail of the configuration:
Script of TabMain:
All Script of Detail Faceplate:
Script.txt
In reply to Cedric Dawnhawk:
Thanks Cedric for your reply, yes you are right.
The "DiscreteTabInit and DiscreteAlarmTabInit" function will initialize the tabstrip of a discrete control. The value of "iTabNo" to display and indicates which tab is selected.
If iTabNo = 0 Then
objTabstrip.Tabs(0).Name = "Page1"
objTabstrip.Tabs(0).Caption = sResString(952)
Else
If iTabNo = 1 Then
objTabstrip.Tabs(1).Name = "Page2"
objTabstrip.Tabs(1).Caption = sResString(952)
objTabstrip.Tabs.Add "Page" & Str(iTabNo + 1), sResString(952)
End If
After, the tab display depends on "sResString(xxx)", we could find all the configuration of this parameter in a file called "D:\DeltaV\DVData\Graphics-iFix\Pic\Standard\ResourceFile.txt".
;Detail Display Common Text
;==========================
944 FORÇAGE SP
945 VARIABLE
946 E/S
947 ALARMES
948 DIAGNOSTICS
949 MODULE CIBLE
950 LIMITES
951 ETAT
952 INTERVERROUILLAGES
953 TEMPS DE MARCHE
954 ALARMES/LIMITES
955 REGLAGE
In VBA, the function to load String from resource file is configured in "Project_SIGlobs / Modules / modMiscellaneous" Code.
For example, it means that sResString(952) represent "INTERVERROUILLAGES".
In reply to Nabil BOU: