Csantucci, on 24 December 2021 - 02:48 AM, said:
Borislav kindly allowed me to modify and to make the modifications public for his excellent cabview for the SVTX ES44AC to test the feature.
Below the screen page in the cab
DPscreenpage.jpg
Using also the feature about the multiple screen pages, the page is recalled by pushing a button below the main screen.
The screen page layout is formed by a fixed background, and by the variable table part.
The variable table is recalled with following cabview control:
ScreenDisplay ( Type ( ORTS_DISTRIBUTED_POWER SCREEN_DISPLAY ) Position ( 164.4 286.5 136 52 ) Parameters ( FullTable True ) Units ( KM_PER_HOUR ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) )
So with only a call the whole table is displayed.
The cabview controls to control the various DP commands are linked to the buttons below the display, and are active only if the DP screen page is displayed. Here the self-explaining code for them in the .cvf file:
TwoState ( Type ( ORTS_DP_MOVE_TO_FRONT TWO_STATE ) Position ( 163.2 378.4 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_MOVE_TO_BACK TWO_STATE ) Position ( 179.9 379 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_IDLE TWO_STATE ) Position ( 214.325 379.5 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_TRACTION TWO_STATE ) Position ( 196.9 379.25 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_BRAKE TWO_STATE ) Position ( 231 380.6 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_MORE TWO_STATE ) Position ( 248.5 379.6 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey1trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) ) TwoState ( Type ( ORTS_DP_LESS TWO_STATE ) Position ( 247 390.625 13.75 10 ) Graphic ( "..\\..\\Common.Cab\\ES44v3\\softkey2trans.ace" ) NumFrames ( 2 2 1 ) Style ( WHILE_PRESSED ) MouseControl ( 1 ) ORTSDisplay ( 1 ) ORTSScreenPage ( "2300-0" ) )
I'm planning to make available the whole customization kit, so that the ugraded cab may be used and can be used as reference for content developers.
This is an excellent addition! I will start working on implementing it in all of my cabs.