PageRenderTime 485ms CodeModel.GetById 241ms app.highlight 3ms RepoModel.GetById 239ms app.codeStats 0ms

/indra/newview/skins/default/xui/en/floater_test_combobox.xml

https://bitbucket.org/lindenlab/viewer-beta/
XML | 158 lines | 158 code | 0 blank | 0 comment | 0 complexity | 5b099aff8dd9d2e8aaaec760721d7225 MD5 | raw file
  1<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
  2<floater
  3 legacy_header_height="18"
  4 can_resize="true"
  5 height="400"
  6 layout="topleft"
  7 name="floater_test_combobox"
  8 help_topic="floater_test_combobox"
  9 translate="false"
 10 width="400">
 11    <text
 12     type="string"
 13     length="1"
 14     height="16"
 15     layout="topleft"
 16     left="10"
 17     top="24"
 18     width="200">
 19        Real world usage (login location):
 20    </text>
 21    <combo_box
 22     allow_text_entry="true"
 23     control_name="LoginLocation"
 24     follows="left|bottom"
 25     height="18"
 26     layout="topleft"
 27     left_delta="0"
 28     max_chars="128"
 29     name="start_location_combo"
 30     top_pad="2"
 31     width="155">
 32        <combo_box.item
 33         label="My Last Location"
 34         name="MyLastLocation"
 35         value="last" />
 36        <combo_box.item
 37         label="My Home"
 38         name="MyHome"
 39         value="home" />
 40        <combo_box.item
 41         label="&lt;Type region name&gt;"
 42         name="Typeregionname"
 43         value="" />
 44    </combo_box>
 45    <text
 46     type="string"
 47     length="1"
 48     height="16"
 49     layout="topleft"
 50     left_delta="0"
 51     top_pad="24"
 52     width="200">
 53        Minimal combobox:
 54    </text>
 55    <combo_box
 56     height="18"
 57     layout="topleft"
 58     left_delta="0"
 59     name="minimal_combo"
 60     top_pad="2"
 61     width="150">
 62        <combo_box.item
 63         label="First Item"
 64         name="item1"
 65         value="first" />
 66        <combo_box.item
 67         label="Second Item"
 68         name="item2"
 69         value="second" />
 70    </combo_box>
 71    <text
 72     type="string"
 73     length="1"
 74     height="16"
 75     layout="topleft"
 76     left_delta="0"
 77     top_pad="24"
 78     width="200">
 79        Allow text input:
 80    </text>
 81    <combo_box
 82     allow_text_entry="true"
 83     height="18"
 84     layout="topleft"
 85     left_delta="0"
 86     name="text_entry_combo"
 87     top_pad="2"
 88     width="150">
 89        <combo_box.item
 90         label="First Item"
 91         name="item1"
 92         value="first" />
 93        <combo_box.item
 94         label="Second Item"
 95         name="item2"
 96         value="second" />
 97    </combo_box>
 98    <text
 99     type="string"
100     length="1"
101     height="16"
102     layout="topleft"
103     left_delta="0"
104     top_pad="24"
105     width="200">
106        Allow text input, default to second item:
107    </text>
108    <combo_box
109     allow_text_entry="true"
110     height="18"
111     initial_value="second"
112     layout="topleft"
113     left_delta="0"
114     name="text_entry_combo2"
115     top_pad="2"
116     width="150">
117        <combo_box.item
118         label="First Item"
119         name="item1"
120         value="first" />
121        <combo_box.item
122         label="Second Item"
123         name="item2"
124         value="second" />
125    </combo_box>
126    <text
127     type="string"
128     length="1"
129     height="16"
130     layout="topleft"
131     left_delta="0"
132     top_pad="24"
133     width="200">
134        Two character max input:
135    </text>
136    <combo_box
137     allow_text_entry="true"
138     height="16"
139     layout="topleft"
140     left_delta="0"
141     max_chars="2"
142     name="state_combo"
143     top_pad="4"
144     width="150">
145        <combo_box.item
146         label="CA"
147         name="item1"
148         value="ca" />
149        <combo_box.item
150         label="NY"
151         name="item2"
152         value="ny" />
153        <combo_box.item
154         label="TX"
155         name="item3"
156         value="tx" />
157    </combo_box>
158</floater>