home *** CD-ROM | disk | FTP | other *** search
/ GameStar 2004 November / Gamestar_67_2004-11_dvd.iso / Dema / footballmanager2005_betademo.exe / Data1.cab / _ECB309543FCE42A5AE2F0C0EE71A94D8 < prev    next >
Extensible Markup Language  |  2004-08-30  |  3KB  |  85 lines

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE container SYSTEM "http://www.sigames.com/dtds/container.dtd">
  3.  
  4. <panel id="dlog">
  5.     <!-- stretch everything to the sides of the dialog -->
  6.     <layout class="stick_to_sides_attachment" alignment="horizontal" layout_children="true" inset="0"/>
  7.  
  8.     <!-- make dialog moveable -->
  9.     <attachment class="moveable_attachment"/>
  10.     
  11.     <!-- arrange items vertically, with text at top -->
  12.     <layout class="arrange_vertical_attachment" alignment="top"/>
  13.  
  14.     <!-- centre dialog in parent -->
  15.     <layout class="centre_in_parent_attachment" alignment="all"/>
  16.  
  17.     <!-- fit the height of the dialog to the height of its components -->
  18.     <layout class="fit_children_attachment" alignment="vertical, fill"/>
  19.     
  20.     <!-- text field - should resize vertically to ensure
  21.          that it's contents fit -->
  22.     <widget class="text" id="text" auto_size="vertical"/>
  23.  
  24.     <!-- editable text field - normally hidden -->
  25.     <!-- by default the return action does the same as clicking ok -->
  26.     <widget class="edit_box" id="edit" hidn="true" rtev="ok" afoc="true" />
  27.  
  28.     <!-- standard buttons / these get shown & hidden by subclasses -->
  29.     <container id="btns">
  30.         <!-- arrange items horizontally, right aligned -->
  31.         <layout class="arrange_horizontal_attachment" alignment="right" offset="0"/>
  32.         
  33.         <!-- stick buttons to bottom of box -->
  34.         <layout class="stick_to_sides_attachment" alignment="bottom" inset="0" layout_children="true" />
  35.         
  36.         <!-- fit box to the height of the biggest button -->
  37.         <layout class="fit_children_attachment" alignment="vertical" offset="0"/>
  38.         
  39.         <!-- buttons -->
  40.         <widget class="action_button_blue" id="canc" text="Cancel" hidn="true">
  41.             <layout class="autosize_attachment" />
  42.  
  43.             <!-- we need to specify that this is a dialog event (dialog_event=true) -->
  44.             <record id="click_event">
  45.                 <flags id="event_id" value="cncl" />
  46.                 <flags id="dialog_event" value="true" />
  47.             </record>
  48.             
  49.         </widget>
  50.         
  51.         <widget class="action_button_blue" id="no" text="No" hidn="true">
  52.             <layout class="autosize_attachment" />
  53.             
  54.             <!-- we need to specify that this is a dialog event (dialog_event=true) -->
  55.             <record id="click_event">
  56.                 <flags id="event_id" value="no" />
  57.                 <flags id="dialog_event" value="true" />
  58.             </record>
  59.             
  60.         </widget>
  61.         
  62.         <widget class="action_button_blue" id="yes" text="Yes" hidn="true">
  63.             <layout class="autosize_attachment" />
  64.  
  65.             <!-- we need to specify that this is a dialog event (dialog_event=true) -->
  66.             <record id="click_event">
  67.                 <flags id="event_id" value="yes" />
  68.                 <flags id="dialog_event" value="true" />
  69.             </record>
  70.         </widget>
  71.         
  72.         <widget class="action_button_blue" id="ok" text="OK" hidn="true">
  73.             <layout class="autosize_attachment" />
  74.  
  75.             <!-- we need to specify that this is a dialog event (dialog_event=true) -->
  76.             <record id="click_event">
  77.                 <flags id="event_id" value="ok" />
  78.                 <flags id="dialog_event" value="true" />
  79.             </record>
  80.         </widget>
  81.  
  82.     </container>
  83.  
  84. </panel>
  85.