~efargaspro/+junk/codeblocks-16.01-release

« back to all changes in this revision

Viewing changes to src/sdk/wxpropgrid/samples/sample.xrc

  • Committer: damienlmoore at gmail
  • Date: 2016-02-02 02:43:22 UTC
  • Revision ID: damienlmoore@gmail.com-20160202024322-yql5qmtbwdyamdwd
Code::BlocksĀ 16.01

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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>
 
5
    <size>350,500</size>
 
6
    <object class="wxBoxSizer">
 
7
      <orient>wxVERTICAL</orient>
 
8
      <object class="sizeritem">
 
9
        <flag>wxEXPAND</flag>
 
10
        <option>1</option>
 
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>
 
15
            <page>
 
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>
 
23
                    </property>
 
24
                    <property class="wxSystemColourProperty">
 
25
                        <label>Cell Text Colour</label>
 
26
                        <value>(0,0,0)</value>
 
27
                    </property>
 
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
 
40
                        </choices>
 
41
                        <value>wxTAB__TRAVERSAL, wxCAPTION, wxCLOSE__BOX, wxSYSTEM__MENU, wxRESIZE__BORDER</value>
 
42
                        <tip>NB: These window style values are not genuine!</tip>
 
43
                    </property>
 
44
                    <property class="wxCursorProperty">
 
45
                        <label>Cursor</label>
 
46
                        <value>Default</value>
 
47
                    </property>
 
48
                    <property class="wxFontProperty">
 
49
                        <label>Font</label>
 
50
                        <value>10; Swiss; Abadi MT Condensed Extra Bold; Normal; Normal; False</value>
 
51
                        <expanded>true</expanded>
 
52
                    </property>
 
53
                    <property class="wxStringProperty">
 
54
                        <label>Label</label>
 
55
                        <value>wxPropertyGrid Sample</value>
 
56
                    </property>
 
57
                </property>
 
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>
 
66
                    </property>
 
67
                </property>
 
68
            </page>
 
69
            <page>
 
70
                <label>Sample Page 2</label>
 
71
                <columns>3</columns>
 
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"
 
74
                </choices>
 
75
                <splitterpos>30%</splitterpos>
 
76
                <splitterpos index="1">90%</splitterpos>
 
77
                <property class="wxEnumProperty">
 
78
                    <label>Enum Property 1</label>
 
79
                    <value>Riker</value>
 
80
                    <choices>@EnterpriseCrew</choices>
 
81
                </property>
 
82
                <property class="wxEnumProperty">
 
83
                    <label>Enum Property 2</label>
 
84
                    <value>Data</value>
 
85
                    <choices>@EnterpriseCrew</choices>
 
86
                </property>
 
87
                <property class="wxEnumProperty">
 
88
                    <label>Enum Property 3</label>
 
89
                    <value>Picard</value>
 
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"
 
93
                    </choices>
 
94
                </property>
 
95
            </page>
 
96
        </object>
 
97
      </object>
 
98
      <object class="sizeritem">
 
99
        <object class="wxBoxSizer">
 
100
          <object class="sizeritem">
 
101
            <object class="wxButton" name="wxID_OK">
 
102
              <label>Ok</label>
 
103
              <default>1</default>
 
104
            </object>
 
105
          </object>
 
106
          <object class="sizeritem">
 
107
            <object class="wxButton" name="wxID_CANCEL">
 
108
              <label>Cancel</label>
 
109
            </object>
 
110
            <border>10</border>
 
111
            <flag>wxLEFT</flag>
 
112
          </object>
 
113
        </object>
 
114
        <flag>wxLEFT|wxRIGHT|wxBOTTOM|wxTOP|wxALIGN_RIGHT</flag>
 
115
        <border>10</border>
 
116
      </object>
 
117
    </object>
 
118
  </object>
 
119
</resource>