Hello,
I've created a Global Object, and assigned it three Global Variable Parameters using (Context Menu -> Global Variable Parameter Definition) - #1 is a Valve object created in the PLC, while #2 and #3 are basically position coordinates where I want my Faceplate for the object to pop up. The Global Object has a GoToDisplayButton in which I use the parameter list to pass on {#1}, {#2} and {#3} to the display. I also define the Top and Left positions in the Connections tab as "#2" and "#3" so that the called Faceplate appears where I want it to. (The called display is of the On Top type, of course)
I define the Global Variable Parameters of an instance of the Global Object as
#1 - {[PLC_Name]Valve},
#2 - 100,
#3 - 100.
This works as expected and the Faceplate pops up at the (100,100) spot.
Here's the problem:
I want to insert another GoToDisplayButton in the Basic Faceplate to call up another Faceplate - one with advanced options. In the simplest form I want this Advanced Faceplate to pop up in the same place that the Basic one did - however, it seems that the {#2} and {#3} values, being constants, simply cannot be passed using the parameter list, and the Advanced Display defaults to the (0,0) position when called.
Any ideas on how I can make the Advanced Faceplate popup on top of, or even better right next to, the Basic Faceplate?
Is there any way to access Display properties using Expressions? Like Extracting some sort of Display.Top and Display.Left property and using that in an GoToDisplayButton Top and Left Expression to generate a new display relative to the previous one?
Is there any other way to extend a display? I tried putting both Basic and Advanced Faceplates in one display and then playing around with visibility, but the Basic Faceplate is very small by design, and the Advanced Faceplate isn't, so when I call the Basic Faceplate with the invisible Advanced one, it just leaves a large obvious Display-Background-colored spot in the place where the Advanced Faceplate is hidden.
I've created a Global Object, and assigned it three Global Variable Parameters using (Context Menu -> Global Variable Parameter Definition) - #1 is a Valve object created in the PLC, while #2 and #3 are basically position coordinates where I want my Faceplate for the object to pop up. The Global Object has a GoToDisplayButton in which I use the parameter list to pass on {#1}, {#2} and {#3} to the display. I also define the Top and Left positions in the Connections tab as "#2" and "#3" so that the called Faceplate appears where I want it to. (The called display is of the On Top type, of course)
I define the Global Variable Parameters of an instance of the Global Object as
#1 - {[PLC_Name]Valve},
#2 - 100,
#3 - 100.
This works as expected and the Faceplate pops up at the (100,100) spot.
Here's the problem:
I want to insert another GoToDisplayButton in the Basic Faceplate to call up another Faceplate - one with advanced options. In the simplest form I want this Advanced Faceplate to pop up in the same place that the Basic one did - however, it seems that the {#2} and {#3} values, being constants, simply cannot be passed using the parameter list, and the Advanced Display defaults to the (0,0) position when called.
Any ideas on how I can make the Advanced Faceplate popup on top of, or even better right next to, the Basic Faceplate?
Is there any way to access Display properties using Expressions? Like Extracting some sort of Display.Top and Display.Left property and using that in an GoToDisplayButton Top and Left Expression to generate a new display relative to the previous one?
Is there any other way to extend a display? I tried putting both Basic and Advanced Faceplates in one display and then playing around with visibility, but the Basic Faceplate is very small by design, and the Advanced Faceplate isn't, so when I call the Basic Faceplate with the invisible Advanced one, it just leaves a large obvious Display-Background-colored spot in the place where the Advanced Faceplate is hidden.