Programming for experts
P.
120 of 349
Evaluate selection box
If the user now changes the selection box the corresponding time buffer should be displayed:
if mpbutton(SelectID,1,PageID)==255 then {
mtimechartpos(TimeChartID,0,ChartBuffer0,0u16,30639u16);
pdisplay(SelectID,$Es wird 2011 dargestellt$,DATE,DISPLAY,GREY,PageID,1)
} endif
if mpbutton(SelectID,2,PageID)==255 then {
mtimechartpos(TimeChartID,0,ChartBuffer1,0u16,30639u16);
pdisplay(SelectID,$Es wird 2012 dargestellt$,DATE,DISPLAY,GREY,PageID,2)
} endif
if mpbutton(SelectID,3,PageID)==255 then {
mtimechartpos(TimeChartID,0,ChartBuffer2,0u16,30639u16);
pdisplay(SelectID,$Es wird 2013 dargestellt$,DATE,DISPLAY,GREY,PageID,3)
} endif
It can be seen how the graph with index 0 of the mtimechart is “diverted” to the different time buffer
via ID. We fall back to the function
mtimechartpos
, which links the year chart buffer each with the
graph 0.
Even a small addition to the clock display: This is now shown in the exact seconds in visualization,
because the real-time web server adjusts every change of the “second hand”.
HandbuchEibPC_USA-30.odt, 2017-05-11
Enertex
®
Bayern GmbH - Erlachstraße 13 - 91301 Forchheim - [email protected]