N66FC Raptor
04-26-2006, 10:36 PM
Hello everyone,
I need help with determining the Precise <Scale Y=" "/> ratio in the default Lear 45 Backup Attitude gauge. The entire code for this XML gauge can be viewed at http://www.kgz.shawbiz.ca/tutorials/xml/examples/xml00001.html but the area I'm have trouble with is as follows:
<Shift>
<Value Minimum="-90" <Scale YMaximum="90">(A:Attitude indicator pitch degrees, degrees) /-/</Value>
<Scale Y="4"/>
</Shift>
"Here we see a value line that generates a number in the range of -90 to +90. Notice the <Scale Y="4"/> instruction. Without this, the bitmap controlled would move the number of pixels being generated by the value line, from a datum position. This is fairly restrictive, so to give it total flexibility, the scale instruction is used. The Y character tells the bitmap to move in the Y direction (up and down). This could be an X character and produce sideway movement. The Y="4" multiplies the value generated by 4. So if the positive maximum of 90 is generated, the bitmap will move 4x90=360 pixels."
The above code is from http://www.fs2x.com/ Tutorial Chapter 1: Main Body Sections
Details of the post may also be viewed at: http://www.kgz.shawbiz.ca/tutorials/xml/backup_attitude_gauge.html
I need help with determining the Precise <Scale Y=" "/> ratio in the default Lear 45 Backup Attitude gauge. The entire code for this XML gauge can be viewed at http://www.kgz.shawbiz.ca/tutorials/xml/examples/xml00001.html but the area I'm have trouble with is as follows:
<Shift>
<Value Minimum="-90" <Scale YMaximum="90">(A:Attitude indicator pitch degrees, degrees) /-/</Value>
<Scale Y="4"/>
</Shift>
"Here we see a value line that generates a number in the range of -90 to +90. Notice the <Scale Y="4"/> instruction. Without this, the bitmap controlled would move the number of pixels being generated by the value line, from a datum position. This is fairly restrictive, so to give it total flexibility, the scale instruction is used. The Y character tells the bitmap to move in the Y direction (up and down). This could be an X character and produce sideway movement. The Y="4" multiplies the value generated by 4. So if the positive maximum of 90 is generated, the bitmap will move 4x90=360 pixels."
The above code is from http://www.fs2x.com/ Tutorial Chapter 1: Main Body Sections
Details of the post may also be viewed at: http://www.kgz.shawbiz.ca/tutorials/xml/backup_attitude_gauge.html