]> git.saurik.com Git - wxWidgets.git/blob - samples/xrc/rc/platform.xrc
Misc validity fixes to samples/xrc/rc/*.xrc.
[wxWidgets.git] / samples / xrc / rc / platform.xrc
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2
3 <resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.3.0.1">
4
5 <object class="wxDialog" name="platform_property_dialog">
6 <title>Platform Property Example</title>
7 <centered>1</centered>
8 <object class="wxFlexGridSizer">
9 <cols>1</cols>
10 <rows>0</rows>
11 <vgap>0</vgap>
12 <hgap>0</hgap>
13 <growablecols>0</growablecols>
14 <growablerows>0</growablerows>
15 <object class="sizeritem">
16 <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
17 <border>5</border>
18 <object class="wxTextCtrl" name="message_textctrl">
19 <size>500,150</size>
20 <style>wxTE_MULTILINE</style>
21 <value>You can specify certain nodes of an XRC file to only be used for a certain platform.\n\nTo do this, there is a "platform" property that can be placed in any node [ie inside an opening tag]. The value of the tag can be any combination of the following: mac, win, unix, or os2. Use a | symbol between multiple platforms, for example &lt;label platform="win|mac"&gt;\n\nAt runtime, if there is a platform property in the tag, if it matches the current operating system, that node will be included, otherwise it won't.\n\nThe notebook example below shows how you can specify a high level node to only appear on a certain platform: the example here being a page of preferences that only make sense on a certain platform.\n\nThe second example shows how to replace a single attribute of a control: here the label of a download link. It is also very useful for specifying menu item accelerators keystrokes on the target platform.</value>
22 </object>
23 </object>
24 <object class="sizeritem">
25 <flag>wxGROW|wxALIGN_CENTER_VERTICAL|wxALL</flag>
26 <border>5</border>
27 <object class="wxNotebook" name="platform_notebook">
28 <size>200,160</size>
29 <object class="notebookpage">
30 <label>Shared options</label>
31 <object class="wxPanel" name="shared_tab">
32 <object class="wxBoxSizer">
33 <orient>wxVERTICAL</orient>
34 <object class="sizeritem">
35 <flag>wxALIGN_CENTRE|wxALL</flag>
36 <border>5</border>
37 <object class="wxCheckBox" name="shared_checkbox">
38 <label>This preference is for all operating systems</label>
39 </object>
40 </object>
41 </object>
42 </object>
43 </object>
44 <object platform="mac" class="notebookpage">
45 <label>Macintosh options</label>
46 <object class="wxPanel" name="mac_specific">
47 <object class="wxBoxSizer">
48 <orient>wxVERTICAL</orient>
49 <object class="sizeritem">
50 <flag>wxALIGN_CENTRE|wxALL</flag>
51 <border>5</border>
52 <object class="wxCheckBox" name="mac_checkbox">
53 <label>Save output in iMovie compatible format</label>
54 </object>
55 </object>
56 </object>
57 </object>
58 </object>
59 <object platform="win" class="notebookpage">
60 <label>Windows options</label>
61 <object class="wxPanel" name="win_specific">
62 <object class="wxBoxSizer">
63 <orient>wxVERTICAL</orient>
64 <object class="sizeritem">
65 <flag>wxALIGN_CENTRE|wxALL</flag>
66 <border>5</border>
67 <object class="wxCheckBox" name="win_checkbox">
68 <label>Show application in icon tray instead of taskbar</label>
69 </object>
70 </object>
71 </object>
72 </object>
73 </object>
74 <object platform="unix" class="notebookpage">
75 <label>Linux options</label>
76 <object class="wxPanel" name="unix_specific">
77 <object class="wxBoxSizer">
78 <orient>wxVERTICAL</orient>
79 <object class="sizeritem">
80 <flag>wxALIGN_CENTRE|wxALL</flag>
81 <border>5</border>
82 <object class="wxCheckBox" name="unix_checkbox">
83 <label>Check my home directory for previous files</label>
84 </object>
85 </object>
86 </object>
87 </object>
88 </object>
89 <object platform="os2" class="notebookpage">
90 <label>OS2 options</label>
91 <object class="wxPanel" name="os2_specific">
92 <object class="wxBoxSizer">
93 <orient>wxVERTICAL</orient>
94 <object class="sizeritem">
95 <flag>wxALIGN_CENTRE|wxALL</flag>
96 <border>5</border>
97 <object class="wxCheckBox" name="os2_checkbox">
98 <label>Use WarpIn installer</label>
99 </object>
100 </object>
101 </object>
102 </object>
103 </object>
104 </object>
105 </object>
106 <object platform="mac" class="sizeritem">
107 <flag>wxALIGN_CENTRE|wxALL</flag>
108 <border>5</border>
109 <object class="wxStaticText" name="download_mac_statictext">
110 <label>Get latest update at www.mycompany.com/download/mac</label>
111 </object>
112 </object>
113 <object platform="win" class="sizeritem">
114 <flag>wxALIGN_CENTRE|wxALL</flag>
115 <border>5</border>
116 <object class="wxStaticText" name="download_win_statictext">
117 <label>Get latest update at www.mycompany.com/download/win</label>
118 </object>
119 </object>
120 <object platform="unix" class="sizeritem">
121 <flag>wxALIGN_CENTRE|wxALL</flag>
122 <border>5</border>
123 <object class="wxStaticText" name="download_unix_statictext">
124 <label>Get latest update at www.mycompany.com/download/unix</label>
125 </object>
126 </object>
127 <object platform="os2" class="sizeritem">
128 <flag>wxALIGN_CENTRE|wxALL</flag>
129 <border>5</border>
130 <object class="wxStaticText" name="download_os2_statictext">
131 <label>Get latest update at www.mycompany.com/download/os2</label>
132 </object>
133 </object>
134 <object class="sizeritem">
135 <flag>wxALIGN_CENTRE|wxALL</flag>
136 <border>5</border>
137 <object class="wxButton" name="wxID_OK">
138 <label>OK</label>
139 </object>
140 </object>
141 </object>
142 </object>
143
144 </resource>