I've read many threads on the Update section in an XML gauge, but for some reason (my age ?...LoL) I still can't grasp the idea behind it.
I mean, what's the advantage of using
???
I've read that the Element structure was intended more for grafical parts of the gauge, and the Update section intended more for "logic" control code).
I also understand the limitation of one Update section in a gauge (which is just a disadvantage).
Since most of my gauges are bitmap-less control gauges: is there any advantage in using Update section instead of Element sections ??
There is one thing I could think of.
Hidden="..." suggests that you can control execution of the code depending on visibility of the window in which the gauge is defined.
So if you define the gauge in a 2D-panel window:
- If Update Hidden="Yes" : Lvar Test is always updated.
- If Update Hidden="No": Lvar Test is only updated when the 2D-panel window is actually visible.
Simular to the On-Event trapping in FSX.
But whatever I tried, I can't detect any difference between using Hidden="No" or "Yes".
Is there ?? And if so, what ??
Thanks, Rob
I mean, what's the advantage of using
Code:
<Update Hidden="Yes">
(L:Test,number) ++ (>L:Test,number)
</Update>
instead of
<Element>
<Select>
<Value>
(L:Test,number) ++ (>L:Test,number)
</Value>
</Select>
</Element>
I've read that the Element structure was intended more for grafical parts of the gauge, and the Update section intended more for "logic" control code).
I also understand the limitation of one Update section in a gauge (which is just a disadvantage).
Since most of my gauges are bitmap-less control gauges: is there any advantage in using Update section instead of Element sections ??
There is one thing I could think of.
Hidden="..." suggests that you can control execution of the code depending on visibility of the window in which the gauge is defined.
So if you define the gauge in a 2D-panel window:
- If Update Hidden="Yes" : Lvar Test is always updated.
- If Update Hidden="No": Lvar Test is only updated when the 2D-panel window is actually visible.
Simular to the On-Event trapping in FSX.
But whatever I tried, I can't detect any difference between using Hidden="No" or "Yes".
Is there ?? And if so, what ??
Thanks, Rob







