<style id="readout"> <insets top="0" left="4" bottom="-4" right="4"/> <state styleSet="0"> <color value="transparent" type="BACKGROUND"/> <color value="GREEN" type="TEXT_FOREGROUND"/> <property key="Label.halo" type="boolean" value="false" /> <font resource="DU1310SSmall" size="12.6" style="BOLD" /> </state> </style>
<style id="togglebutton"> <state> <insets top="9" left="10" bottom="9" right="12"/> <color type="TEXT_FOREGROUND" value="WHITE"/> <font resource="FontSmall" size="12.6" style="BOLD" /> </state>
<state styleSet="0" value="PRESSED"> <imagePainter method="background" path="pictures/softkeyPressed.png" sourceInsets="10 12 8 9" paintCenter="true" stretch="true"/> <insets top="10" left="12" bottom="8" right="9"/> <color type="TEXT_FOREGROUND" value="WHITE"/> <font resource="DU1310SSmall" size="12.6" style="BOLD" /> </state>
SELECTED AND PRESSED
<state styleSet="0"> <color type="TEXT_FOREGROUND" value="WHITE"/> <font resource="DU1310SSmall" size="12.6" style="BOLD" /> </state> <state styleSet="0" value="PRESSED"> <color type="TEXT_FOREGROUND" value="BLACK"/> <font resource="DU1310SSmall" size="12.6" style="BOLD" /> </state>
<style id="myButton"> ... </style> <bind style="myButton" key="button"/> <style id="myPanel"> ... </style> <bind style="myPanel" key="panel" arinc="A661_PANEL"/>In this example:
<insets top="0" left="4" bottom="-4" right="4"/>
<font resource="MySmallFont" size="12.6" style="BOLD"/>The resource points to a resource defines globally in the synth2 XML file
<color value="GREEN" type="TEXT_FOREGROUND"/>The color points to a constant defines globally in the synth2 XML file[3]
<imagePainter method="background" path="pictures/simpleSoftkey.png" sourceInsets="9 10 9 12" paintCenter="true" stretch="true"/>
<imageIcon id="check_onCyan" path="pictures/checkButtonOnCyan.png"/>
<property key="CheckBox.icon" value="check_onCyan"/>
<style id="line"> <state styleSet="0"> <stroke width="2" endCap="CAP_ROUND" /> <property key="graphicWidget.halo" type="boolean" value="false" /> <property key="halo" type="string" value="supersmall" /> </state> </style> <bind style="line" key="line"/>
Copyright 2016-2017 Dassault Aviation. All Rights Reserved. Documentation and source under the LGPL v2 licence