1
<?xml version="1.0" encoding="utf-8" ?>
2
<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
3
<object class="wxDialog" name="dlg1">
4
<title>Testing XRC</title>
6
<object class="wxBoxSizer">
7
<orient>wxVERTICAL</orient>
8
<object class="sizeritem">
11
<object class="wxPropertyGridManager">
12
<style>wxPG_AUTO_SORT|wxPG_TOOLTIPS|wxPG_TOOLBAR</style>
13
<exstyle>wxPG_EX_MODE_BUTTONS|wxPG_EX_HELP_AS_TOOLTIPS</exstyle>
14
<virtualwidth>0</virtualwidth>
16
<label>Sample Page 1</label>
17
<property class="wxPropertyCategory">
18
<label>Appearance</label>
19
<property class="wxSystemColourProperty">
20
<label>Cell Colour</label>
21
<value>(255,255,255)</value>
22
<tip>Sample help string</tip>
24
<property class="wxSystemColourProperty">
25
<label>Cell Text Colour</label>
26
<value>(0,0,0)</value>
28
<property class="wxFlagsProperty">
29
<label>Window Styles</label>
30
<!-- List of supported flags: EXPANDED, COLLAPSED, DISABLED, HIDDEN, NOEDITOR, DENY_COMMON_VALUES -->
31
<flags>EXPANDED</flags>
32
<choices id="WindowStyles">"wxSIMPLE_BORDER"=0x0001 "wxDOUBLE_BORDER"=0x0002
33
"wxSUNKEN_BORDER"=0x0004 "wxRAISED_BORDER"=0x0008
34
"wxNO_BORDER"=0x0010 "wxTRANSPARENT_WINDOW"=0x0020
35
"wxTAB_TRAVERSAL"=0x0040 "wxWANTS_CHARS"=0x0080
36
"wxCAPTION"=0x0100 "wxMINIMIZE"=0x0200
37
"wxMAXIMIZE"=0x0400 "wxCLOSE_BOX"=0x0800
38
"wxSTAY_ON_TOP"=0x1000 "wxSYSTEM_MENU"=0x2000
39
"wxRESIZE_BORDER"=0x4000 "wxFRAME_TOOL_WINDOW"=0x8000
41
<value>wxTAB__TRAVERSAL, wxCAPTION, wxCLOSE__BOX, wxSYSTEM__MENU, wxRESIZE__BORDER</value>
42
<tip>NB: These window style values are not genuine!</tip>
44
<property class="wxCursorProperty">
46
<value>Default</value>
48
<property class="wxFontProperty">
50
<value>10; Swiss; Abadi MT Condensed Extra Bold; Normal; Normal; False</value>
51
<expanded>true</expanded>
53
<property class="wxStringProperty">
55
<value>wxPropertyGrid Sample</value>
58
<property class="wxPropertyCategory">
59
<label>Miscellaneous</label>
60
<property class="wxFileProperty">
61
<label>File Property</label>
62
<value>samples.xrc</value>
63
<attribute name="Wildcard">XRC files (*.xrc)|*.xrc</attribute>
64
<attribute name="ShowFullPath">true</attribute>
65
<attribute name="DialogTitle">This is custom dialog title</attribute>
70
<label>Sample Page 2</label>
72
<!-- NB: Regardless that choices must be defined on page-level, they are global. -->
73
<choices id="EnterpriseCrew">"Picard" "Riker" "Data" "LaForge" "Worf" "Crusher" "Troi"
75
<splitterpos>30%</splitterpos>
76
<splitterpos index="1">90%</splitterpos>
77
<property class="wxEnumProperty">
78
<label>Enum Property 1</label>
80
<choices>@EnterpriseCrew</choices>
82
<property class="wxEnumProperty">
83
<label>Enum Property 2</label>
85
<choices>@EnterpriseCrew</choices>
87
<property class="wxEnumProperty">
88
<label>Enum Property 3</label>
90
<!-- NB: Since choices with given id has already been defined, it
91
is used instead of this new list. -->
92
<choices id="EnterpriseCrew">"Kirk" "Spock" "McCoy"
98
<object class="sizeritem">
99
<object class="wxBoxSizer">
100
<object class="sizeritem">
101
<object class="wxButton" name="wxID_OK">
106
<object class="sizeritem">
107
<object class="wxButton" name="wxID_CANCEL">
108
<label>Cancel</label>
114
<flag>wxLEFT|wxRIGHT|wxBOTTOM|wxTOP|wxALIGN_RIGHT</flag>