I am using zenon v7.0 SP0.
I am trying to find a way to show faceplate like picture (for an object â€“ pump for example).
The faceplate looks like a small screen with tabs on the top. The tabs are named like: Status, Configuration, Parameters, etc. When you click on the tab, dedicated screen is opened, in the same frame. Each of dedicated screens shows different information.
I start to experiment on demo project, found on forum. On attached â€œScreen.PNGâ€, the scrUnitConfig is shown. It is open by pressing of one of the three buttons (in row â€“ â€œconfigure unitsâ€)
I am looking a way to show scrUnitConfig_2 screen when gray button named â€œscrUnitConfig_2â€ (on bottom left ) is pressed.
I am looking for VBA solution. Is that achievable?
For positioning of the frame frmUnitConfig (which contains scrUnitConfig and scrUnitConfig_2), I use the following settings of the frame:
Positioning: â€œrelative to elementâ€
Reference point of the frame: top, left
Reference point of the element: top, left; horizontal movement: 0,20
The three buttons in row, which opens the scrUnitConfig, works as it is expected.
I experiment with â€œScreen with indexâ€ function. It is working but I found quite ugly effect.
If I press button using screen with index function (see â€œScreen with screen index function.PNGâ€), the faceplate is not opening 20 pixels on the left, but rather on top!
Next problem I found is when you press â€œscrUnitConfigâ€ button on facelate. It uses â€œscreen switchâ€ function. The first press open the faceplate below â€“ see â€œScreen with screen switch function 1.PNGâ€. The next press open the face plate again down below â€“ see â€œScreen with screen switch function 2.PNGâ€.
So how is it possible to achieve this switch of a few screens in the same frame. The frame sould appears next to the object (pump, fan etc.).
This is a migrated post! Originally posted on 27.06.2013 by user yolovs. Please be aware that information can be outdated.