]> git.saurik.com Git - wxWidgets.git/blame - docs/doxygen/overviews/xrc_format.h
Add wxTimePickerCtrl class.
[wxWidgets.git] / docs / doxygen / overviews / xrc_format.h
CommitLineData
a302d595
VS
1/////////////////////////////////////////////////////////////////////////////
2// Name: xrc_format.h
3// Purpose: XRC format specification
4// Author: Vaclav Slavik
5// RCS-ID: $Id$
526954c5 6// Licence: wxWindows licence
a302d595
VS
7/////////////////////////////////////////////////////////////////////////////
8
1dfb6ff0
FM
9
10/*
9d9abdbf
BP
11 NOTE: To make doxygen happy about <custom-tags> we're forced to
12 escape all < and > symbols which appear inside a doxygen comment.
13 Also, don't use < and > symbols in section titles.
1dfb6ff0
FM
14*/
15
16
a302d595
VS
17/**
18
9d9abdbf 19@page overview_xrcformat XRC File Format
a302d595
VS
20
21Table of contents:
9d9abdbf
BP
22- @ref overview_xrcformat_overview
23- @ref overview_xrcformat_root
24- @ref overview_xrcformat_objects
25 - @ref overview_xrcformat_object
26 - @ref overview_xrcformat_object_ref
27- @ref overview_xrcformat_datatypes
28- @ref overview_xrcformat_windows
29 - @ref overview_xrcformat_std_props
30 - @ref overview_xrcformat_controls
31- @ref overview_xrcformat_sizers
32- @ref overview_xrcformat_other_objects
33- @ref overview_xrcformat_platform
0526c8cc 34- @ref overview_xrcformat_idranges
9d9abdbf
BP
35- @ref overview_xrcformat_extending
36 - @ref overview_xrcformat_extending_subclass
37 - @ref overview_xrcformat_extending_unknown
38 - @ref overview_xrcformat_extending_custom
39- @ref overview_xrcformat_packed
40- @ref overview_xrcformat_oldversions
41e69d79
FM
41
42This document describes the format of XRC resource files, as used by wxXmlResource.
a302d595
VS
43
44
1dfb6ff0
FM
45<hr>
46
47
41e69d79 48@section overview_xrcformat_overview Overview
a302d595
VS
49
50XRC file is a XML file with all of its elements in the
51@c http://www.wxwidgets.org/wxxrc namespace. For backward compatibility,
52@c http://www.wxwindows.org/wxxrc namespace is accepted as well (and treated
53as identical to @c http://www.wxwidgets.org/wxxrc), but it shouldn't be used
54in new XRC files.
55
56XRC file contains definitions for one or more @em objects -- typically
57windows. The objects may themselves contain child objects.
58
59Objects defined at the top level, under the
41e69d79 60@ref overview_xrcformat_root "root element", can be accessed using
a302d595
VS
61wxXmlResource::LoadDialog() and other LoadXXX methods. They must have
62@c name attribute that is used as LoadXXX's argument (see
41e69d79 63@ref overview_xrcformat_object for details).
a302d595
VS
64
65Child objects are not directly accessible via wxXmlResource, they can only
66be accessed using XRCCTRL().
67
68
9d9abdbf 69@section overview_xrcformat_root Resource Root Element
a302d595 70
1dfb6ff0 71The root element is always @c \<resource\>. It has one optional attribute, @c
a302d595
VS
72version. If set, it specifies version of the file. In absence of @c version
73attribute, the default is @c "0.0.0.0".
74
75The version consists of four integers separated by periods. The first three
76components are major, minor and release number of the wxWidgets release when
77the change was introduced, the last one is revision number and is 0 for the
78first incompatible change in given wxWidgets release, 1 for the second and so
79on. The version changes only if there was an incompatible change introduced;
80merely adding new kind of objects does not constitute incompatible change.
81
82At the time of writing, the latest version is @c "2.5.3.0".
83
84Note that even though @c version attribute is optional, it should always be
85specified to take advantage of the latest capabilities:
86
87@code
88<?xml version="1.0"?>
89<resource xmlns="http://www.wxwidgets.org/wxxrc" version="2.5.3.0">
90 ...
91</resource>
92@endcode
93
1dfb6ff0 94@c \<resource\> may have arbitrary number of
41e69d79 95@ref overview_xrcformat_objects "object elements" as its children; they are referred
a302d595
VS
96to as @em toplevel objects in the rest of this document. Unlike objects defined
97deeper in the hierarchy, toplevel objects @em must have their @c name attribute
98set and it must be set to a value unique among root's children.
99
100
101
9d9abdbf 102@section overview_xrcformat_objects Defining Objects
a302d595 103
9d9abdbf 104@subsection overview_xrcformat_object Object Element
a302d595 105
1dfb6ff0 106The @c \<object\> element represents a single object (typically a GUI element)
a302d595
VS
107and it usually maps directly to a wxWidgets class instance. It has one
108mandatory attribute, @c class, and optional @c name and @c subclass attributes.
109
110The @c class attribute must always be present, it tells XRC what wxWidgets
111object should be created and by which wxXmlResourceHandler.
112
113@c name is the identifier used to identify the object. This name serves three
114purposes:
115
116 -# It is used by wxXmlResource's various LoadXXX() methods to find the
117 resource by name passed as argument.
118 -# wxWindow's name (see wxWindow::GetName()) is set to it.
119 -# Numeric ID of a window or menu item is derived from the name.
120 If the value represents an integer (in decimal notation), it is used for
121 the numeric ID unmodified. If it is one of the wxID_XXX literals defined
122 by wxWidgets (see @ref page_stockitems), its respective value is used.
123 Otherwise, the name is transformed into dynamically generated ID. See
124 wxXmlResource::GetXRCID() for more information.
125
126Name attributes must be unique at the top level (where the name is used to
127load resources) and should be unique among all controls within the same
128toplevel window (wxDialog, wxFrame).
129
130The @c subclass attribute optional name of class whose constructor will be
131called instead of the constructor for "class".
41e69d79 132See @ref overview_xrcformat_extending_subclass for more details.
a302d595 133
1dfb6ff0 134@c \<object\> element may -- and almost always do -- have children elements.
a302d595
VS
135These come in two varieties:
136
137 -# Object's properties. A @em property is a value describing part of object's
138 behaviour, for example the "label" property on wxButton defines its label.
139 In the most common form, property is a single element with text content
0654158b 140 ("\<label\>Cancel\</label\>"), but they may use nested subelements too (e.g.
41e69d79 141 @ref overview_xrcformat_type_font "font property"). A property can only be
a302d595
VS
142 listed once in an object's definition.
143 -# Child objects. Window childs, sizers, sizer items or notebook pages
144 are all examples of child objects. They are represented using nested
1dfb6ff0 145 @c \<object\> elements and are can be repeated more than once. The specifics
a302d595 146 of which object classes are allowed as children are class-specific and
41e69d79 147 are documented below in @ref overview_xrcformat_controls.
a302d595
VS
148
149Example:
150@code
151<object class="wxDialog" name="example_dialog">
152 <!-- properties: -->
153 <title>Non-Derived Dialog Example</title>
154 <centered>1</centered>
155 <!-- child objects: -->
156 <object class="wxBoxSizer">
157 <orient>wxVERTICAL</orient>
158 <cols>1</cols>
159 <rows>0</rows>
160 ...
161 </object>
162</object>
163@endcode
164
165
9d9abdbf 166@subsection overview_xrcformat_object_ref Object References
a302d595 167
1dfb6ff0
FM
168Anywhere an @c \<object\> element can be used, @c \<object_ref\> may be used
169instead. @c \<object_ref\> is a @em reference to another named (i.e. with the
170@c name attribute) @c \<object\> element. It has one mandatory attribute,
171@c ref, with value containing the name of a named @c \<object\> element. When an
172@c \<object_ref\> is encountered, a copy of the referenced @c \<object\> element
173is made in place of @c \<object_ref\> occurrence and processed as usual.
a302d595
VS
174
175For example, the following code:
176@code
177<object class="wxDialog" name="my_dlg">
178 ...
179</object>
180<object_ref name="my_dlg_alias" ref="my_dlg"/>
181@endcode
182is equivalent to
183@code
184<object class="wxDialog" name="my_dlg">
185 ...
186</object>
187<object class="wxDialog" name="my_dlg_alias">
188 ... <!-- same as in my_dlg -->
189</object>
190@endcode
191
192Additionally, it is possible to override some parts of the referenced object
1dfb6ff0 193in the @c \<object_ref\> pointing to it. This is useful for putting repetitive
a302d595
VS
194parts of XRC definitions into a template that can be reused and customized in
195several places. The two parts are merged as follows:
196
197 -# The referred object is used as the initial content.
1dfb6ff0
FM
198 -# All attributes set on @c \<object_ref\> are added to it.
199 -# All child elements of @c \<object_ref\> are scanned. If an element with
a302d595
VS
200 the same name (and, if specified, the @c name attribute too) is found
201 in the referred object, they are recursively merged.
1dfb6ff0 202 -# Child elements in @c \<object_ref\> that do not have a match in the referred
a302d595
VS
203 object are appended to the list of children of the resulting element by
204 default. Optionally, they may have @c insert_at attribute with two possible
205 values, "begin" or "end". When set to "begin", the element is prepended to
206 the list of children instead of appended.
207
208For example, "my_dlg" in this snippet:
209@code
210<object class="wxDialog" name="template">
211 <title>Dummy dialog</title>
212 <size>400,400</size>
213</object>
214<object_ref ref="template" name="my_dlg">
215 <title>My dialog</title>
216 <centered>1</centered>
217</object>
218@endcode
219is identical to:
220@code
5fcef184 221<object class="wxDialog" name="my_dlg">
a302d595
VS
222 <title>My dialog</title>
223 <size>400,400</size>
224 <centered>1</centered>
225</object>
226@endcode
227
228
9d9abdbf 229@section overview_xrcformat_datatypes Data Types
a302d595
VS
230
231There are several property data types that are frequently reused by different
232properties. Rather than describing their format in the documentation of
233every property, we list commonly used types in this section and document
234their format.
235
236
41e69d79 237@subsection overview_xrcformat_type_bool Boolean
a302d595
VS
238
239Boolean values are expressed using either "1" literal (true) or "0" (false).
240
241
41e69d79 242@subsection overview_xrcformat_type_float Floating-point value
a302d595
VS
243
244Floating point values use POSIX (C locale) formatting -- decimal separator
245is "." regardless of the locale.
246
247
41e69d79 248@subsection overview_xrcformat_type_colour Colour
a302d595
VS
249
250Colour specification can be either any string colour representation accepted
251by wxColour::Set() or any wxSYS_COLOUR_XXX symbolic name accepted by
252wxSystemSettings::GetColour(). In particular, the following forms are supported:
253
254@li named colours from wxColourDatabase
255@li HTML-like "#rrggbb" syntax (but not "#rgb")
256@li CSS-style "rgb(r,g,b)" and "rgba(r,g,b,a)"
257@li wxSYS_COLOUR_XXX symbolic names
258
259Some examples:
260@code
261<fg>red</fg>
262<fg>#ff0000</fg>
263<fg>rgb(255,0,0)</fg>
264<fg>wxSYS_COLOUR_HIGHLIGHT</fg>
265@endcode
266
267
41e69d79 268@subsection overview_xrcformat_type_size Size
a302d595
VS
269
270Sizes and positions have the form of string with two comma-separated integer
271components, with optional "d" suffix. Semi-formally:
272
273 size := x "," y ["d"]
274
275where x and y are integers. Either of the components (or both) may be "-1" to
276signify default value. As a shortcut, empty string is equivalent to "-1,-1"
277(= wxDefaultSize or wxDefaultPosition).
278
279When the "d" suffix is used, integer values are interpreted as
280@ref wxWindow::ConvertDialogToPixels() "dialog units" in the parent window.
281
282Examples:
283@code
28442,-1
285100,100
286100,50d
287@endcode
288
41e69d79 289@subsection overview_xrcformat_type_pos Position
a302d595 290
41e69d79 291Same as @ref overview_xrcformat_type_size.
a302d595
VS
292
293
41e69d79 294@subsection overview_xrcformat_type_dimension Dimension
a302d595 295
41e69d79 296Similarly to @ref overview_xrcformat_type_size "sizes", dimensions are expressed
a302d595
VS
297as integers with optional "d" suffix. When "d" suffix is used, the integer
298preceding it is interpreted as dialog units in the parent window.
299
300
41e69d79 301@subsection overview_xrcformat_type_text Text
a302d595
VS
302
303String properties use several escape sequences that are translated according to
304the following table:
305@beginDefList
306@itemdef{ "_", "&" (used for accelerators in wxWidgets) }
307@itemdef{ "__", "_" }
308@itemdef{ "\n", line break }
309@itemdef{ "\r", carriage return }
310@itemdef{ "\t", tab }
311@itemdef{ "\\", "\" }
312@endDefList
313
314By default, the text is translated using wxLocale::GetTranslation() before
315it is used. This can be disabled either globally by not passing
316wxXRC_USE_LOCALE to wxXmlResource constructor, or by setting the @c translate
317attribute on the property node to "0":
318@code
319<!-- this is not translated: -->
320<label translate="0">_Unix</label>
321<!-- but this is: -->
322<help>Use Unix-style newlines</help>
323@endcode
324
325@note Even though the "_" character is used instead of "&" for accelerators,
326 it is still possible to use "&". The latter has to be encoded as "&amp;",
327 though, so using "_" is more convenient.
328
41e69d79 329@see @ref overview_xrcformat_pre_v2530, @ref overview_xrcformat_pre_v2301
a302d595
VS
330
331
9d9abdbf 332@subsection overview_xrcformat_type_text_notrans Non-Translatable Text
a302d595 333
41e69d79 334Like @ref overview_xrcformat_type_text, but the text is never translated and
a302d595
VS
335@c translate attribute cannot be used.
336
337
9d9abdbf 338@subsection overview_xrcformat_type_string String
be42eeb0 339
41e69d79 340An unformatted string. Unlike with @ref overview_xrcformat_type_text, no escaping
be42eeb0
VS
341or translations are done.
342
343
41e69d79 344@subsection overview_xrcformat_type_url URL
be42eeb0
VS
345
346Any URL accepted by wxFileSystem (typically relative to XRC file's location,
41e69d79 347but can be absolute too). Unlike with @ref overview_xrcformat_type_text, no escaping
be42eeb0
VS
348or translations are done.
349
350
41e69d79 351@subsection overview_xrcformat_type_bitmap Bitmap
a302d595
VS
352
353Bitmap properties contain specification of a single bitmap or icon. In the most
354basic form, their text value is simply a relative filename (or another
355wxFileSystem URL) of the bitmap to use. For example:
356@code
357<object class="tool" name="wxID_NEW">
358 <tooltip>New</tooltip>
359 <bitmap>new.png</bitmap>
360</object>
361@endcode
362The value is interpreted as path relative to the location of XRC file where the
363reference occurs.
364
365Alternatively, it is possible to specify the bitmap using wxArtProvider IDs.
366In this case, the property element has no textual value (filename) and instead
367has the @c stock_id XML attribute that contains stock art ID as accepted by
368wxArtProvider::GetBitmap(). This can be either custom value (if the app uses
369app-specific art provider) or one of the predefined wxART_XXX constants.
370
371Optionally, @c stock_client attribute may be specified too and contain one of
372the predefined wxArtClient values. If it is not specified, the default client
373ID most appropriate in the context where the bitmap is referenced will be used.
374In most cases, specifying @c stock_client is not needed.
375
376Examples of stock bitmaps usage:
377@code
378<bitmap stock_id="fixed-width"/> <!-- custom app-specific art -->
674d80a7 379<bitmap stock_id="wxART_FILE_OPEN"/> <!-- standard art -->
a302d595
VS
380@endcode
381
382Specifying the bitmap directly and using @c stock_id are mutually exclusive.
383
384
41e69d79 385@subsection overview_xrcformat_type_style Style
a302d595
VS
386
387Style properties (such as window's style or sizer flags) use syntax similar to
388C++: the style value is OR-combination of individual flags. Symbolic names
389identical to those used in C++ code are used for the flags. Flags are separated
390with "|" (whitespace is allowed but not required around it).
391
392The flags that are allowed for a given property are context-dependent.
393
394Examples:
395@code
396<style>wxCAPTION|wxSYSTEM_MENU | wxRESIZE_BORDER</style>
397<exstyle>wxDIALOG_EX_CONTEXTHELP</exstyle>
398@endcode
399
400
41e69d79 401@subsection overview_xrcformat_type_font Font
a302d595
VS
402
403XRC uses similar, but more flexible, abstract description of fonts to that
404used by wxFont class. A font can be described either in terms of its elementary
405properties, or it can be derived from one of system fonts.
406
407The font property element is "composite" element: unlike majority of
408properties, it doesn't have text value but contains several child elements
409instead. These children are handled in the same way as object properties
410and can be one of the following "sub-properties":
411
412@beginTable
413@hdr3col{property, type, description}
414@row3col{size, unsigned integer,
415 Pixel size of the font (default: wxNORMAL_FONT's size or @c sysfont's
416 size if the @c sysfont property is used.}
417@row3col{style, enum,
418 One of "normal", "italic" or "slant" (default: normal).}
419@row3col{weight, enum,
420 One of "normal", "bold" or "light" (default: normal).}
421@row3col{family, enum,
422 One of "roman", "script", "decorative", "swiss", "modern" or "teletype"
423 (default: roman).}
41e69d79 424@row3col{underlined, @ref overview_xrcformat_type_bool,
a302d595
VS
425 Whether the font should be underlined (default: 0).}
426@row3col{face, ,
427 Comma-separated list of face names; the first one available is used
428 (default: unspecified).}
429@row3col{encoding, ,
430 Charset of the font, unused in Unicode build), as string
431 (default: unspecified).}
432@row3col{sysfont, ,
433 Symbolic name of system standard font(one of wxSYS_*_FONT constants).}
434@row3col{relativesize, float,
435 Float, font size relative to chosen system font's size; can only be
436 used when 'sysfont' is used and when 'size' is not used.}
437@endTable
438
439All of them are optional, if they are missing, appropriate wxFont default is
440used. If the @c sysfont property is used, then the defaults are taken from it
441instead.
442
443Examples:
444@code
445<font>
446 <!-- fixed font: Arial if available, fall back to Helvetica -->
447 <face>arial,helvetica</face>
448 <size>12</size>
449</font>
450
451<font>
452 <!-- enlarged, enboldened standard font: -->
453 <sysfont>wxSYS_DEFAULT_GUI_FONT</sysfont>
454 <weight>bold</weight>
455 <relativesize>1.5</relativesize>
456</font>
457@endcode
458
459
9d9abdbf 460@section overview_xrcformat_windows Controls and Windows
a302d595
VS
461
462This section describes support wxWindow-derived classes in XRC format.
463
9d9abdbf 464@subsection overview_xrcformat_std_props Standard Properties
a302d595
VS
465
466The following properties are always (unless stated otherwise in
467control-specific docs) available for @em windows objects. They are omitted
468from properties lists below.
469
470@beginTable
471@hdr3col{property, type, description}
41e69d79 472@row3col{pos, @ref overview_xrcformat_type_pos,
a302d595 473 Initial position of the window (default: wxDefaultPosition).}
41e69d79 474@row3col{size, @ref overview_xrcformat_type_size,
a302d595 475 Initial size of the window (default: wxDefaultSize).}
41e69d79 476@row3col{style, @ref overview_xrcformat_type_style,
a302d595
VS
477 Window style for this control. The allowed values depend on what
478 window is being created, consult respective class' constructor
479 documentation for details (default: window-dependent default, usually
480 wxFOO_DEFAULT_STYLE if defined for class wxFoo, 0 if not).}
41e69d79 481@row3col{exstyle, @ref overview_xrcformat_type_style,
a302d595
VS
482 Extra style for the window, if any. See wxWindow::SetExtraStyle()
483 (default: not set).}
41e69d79 484@row3col{fg, @ref overview_xrcformat_type_colour,
a302d595 485 Foreground colour of the window (default: window's default).}
a7435c3e
VZ
486@row3col{ownfg, @ref overview_xrcformat_type_colour,
487 Non-inheritable foreground colour of the window, see
488 wxWindow::SetOwnForegroundColour() (default: none).}
41e69d79 489@row3col{bg, @ref overview_xrcformat_type_colour,
a302d595 490 Background colour of the window (default: window's default).}
a7435c3e
VZ
491@row3col{ownbg, @ref overview_xrcformat_type_colour,
492 Non-inheritable background colour of the window, see
493 wxWindow::SetOwnBackgroundColour() (default: none).}
41e69d79 494@row3col{enabled, @ref overview_xrcformat_type_bool,
a302d595 495 If set to 0, the control is disabled (default: 1).}
41e69d79 496@row3col{hidden, @ref overview_xrcformat_type_bool,
a302d595 497 If set to 1, the control is created hidden (default: 0).}
41e69d79 498@row3col{tooltip, @ref overview_xrcformat_type_text,
a302d595 499 Tooltip to use for the control (default: not set).}
41e69d79 500@row3col{font, @ref overview_xrcformat_type_font,
a302d595 501 Font to use for the control (default: window's default).}
a7435c3e
VZ
502@row3col{ownfont, @ref overview_xrcformat_type_font,
503 Non-inheritable font to use for the control, see
504 wxWindow::SetOwnFont() (default: none).}
41e69d79 505@row3col{help, @ref overview_xrcformat_type_text,
a302d595
VS
506 Context-sensitive help for the control, used by wxHelpProvider
507 (default: not set).}
508@endTable
509
510All of these properties are optional.
511
512
9d9abdbf 513@subsection overview_xrcformat_controls Supported Controls
a302d595 514
be42eeb0
VS
515This section lists all controls supported by default. For each control, its
516control-specific properties are listed. If the control can have child objects,
517it is documented there too; unless said otherwise, XRC elements for these
518controls cannot have children.
519
a302d595 520@subsubsection xrc_wxanimationctrl wxAnimationCtrl
be42eeb0
VS
521
522@beginTable
523@hdr3col{property, type, description}
41e69d79 524@row3col{animation, @ref overview_xrcformat_type_url,
be42eeb0
VS
525 Animation file to load into the control (required).}
526@endTable
527
a302d595 528
ae2047c3
VZ
529@subsubsection xrc_wxanimationctrl wxBannerWindow
530
531@beginTable
532@hdr3col{property, type, description}
533@row3col{direction, @c wxLEFT|wxRIGHT|wxTOP|wxBOTTOM,
534 The side along which the banner will be positioned.}
535@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
536 Bitmap to use as the banner background.}
537@row3col{title, @ref overview_xrcformat_type_text,
538 Banner title, should be single line.}
539@row3col{message, @ref overview_xrcformat_type_text,
540 Possibly multi-line banner message.}
541@row3col{gradient-start, @ref overview_xrcformat_type_colour,
542 Starting colour of the gradient used as banner background. Can't be used if
543 a valid bitmap is specified.}
544@row3col{gradient-end, @ref overview_xrcformat_type_colour,
545 End colour of the gradient used as banner background. Can't be used if
546 a valid bitmap is specified.}
547@endTable
548
549
a302d595 550@subsubsection xrc_wxbitmapbutton wxBitmapButton
be42eeb0
VS
551
552@beginTable
553@hdr3col{property, type, description}
41e69d79 554@row3col{default, @ref overview_xrcformat_type_bool,
be42eeb0 555 Should this button be the default button in dialog (default: 0)?}
41e69d79 556@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 557 Bitmap to show on the button (required).}
41e69d79 558@row3col{selected, @ref overview_xrcformat_type_bitmap,
be42eeb0 559 Bitmap to show when the button is selected (default: none, same as @c bitmap).}
41e69d79 560@row3col{focus, @ref overview_xrcformat_type_bitmap,
be42eeb0 561 Bitmap to show when the button has focus (default: none, same as @c bitmap).}
41e69d79 562@row3col{disabled, @ref overview_xrcformat_type_bitmap,
be42eeb0 563 Bitmap to show when the button is disabled (default: none, same as @c bitmap).}
41e69d79 564@row3col{hover, @ref overview_xrcformat_type_bitmap,
be42eeb0
VS
565 Bitmap to show when mouse cursor hovers above the bitmap (default: none, same as @c bitmap).}
566@endTable
567
a302d595
VS
568
569@subsubsection xrc_wxbitmapcombobox wxBitmapComboBox
be42eeb0
VS
570
571@beginTable
572@hdr3col{property, type, description}
573@row3col{selection, integer,
574 Index of the initially selected item or -1 for no selection (default: -1).}
41e69d79 575@row3col{value, @ref overview_xrcformat_type_string,
be42eeb0
VS
576 Initial value in the control (doesn't have to be one of @ content values;
577 default: empty).}
578@endTable
579
580If both @c value and @c selection are specified and @c selection is not -1,
581then @c selection takes precedence.
582
583A wxBitmapComboBox can have one or more child objects of the @c ownerdrawnitem
584pseudo-class. @c ownerdrawnitem objects have the following properties:
585
586@beginTable
587@hdr3col{property, type, description}
41e69d79 588@row3col{text, @ref overview_xrcformat_type_text,
be42eeb0 589 Item's label (required).}
41e69d79 590@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0
VS
591 Item's bitmap (default: no bitmap).}
592@endTable
593
594Example:
595@code
596<object class="wxBitmapComboBox">
597 <selection>1</selection>
598 <object class="ownerdrawnitem">
599 <text>Foo</text>
600 <bitmap>foo.png</bitmap>
601 </object>
602 <object class="ownerdrawnitem">
603 <text>Bar</text>
604 <bitmap>bar.png</bitmap>
605 </object>
606</object>
607@endcode
608
a302d595 609
1bdeb24e
VZ
610@subsubsection xrc_wxtogglebuttton wxBitmapToggleButton
611
612@beginTable
613@hdr3col{property, type, description}
614@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
615 Label to display on the button (required).}
616@row3col{checked, @ref overview_xrcformat_type_bool,
617 Should the button be checked/pressed initially (default: 0)?}
618@endTable
619
620
a302d595 621@subsubsection xrc_wxbutton wxButton
be42eeb0
VS
622
623@beginTable
624@hdr3col{property, type, description}
41e69d79 625@row3col{label, @ref overview_xrcformat_type_text,
18b9d1a1
VZ
626 Label to display on the button (may be empty if only bitmap is used).}
627@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
628 Bitmap to display in the button (optional).}
629@row3col{bitmapposition, @c wxLEFT|wxRIGHT|wxTOP|wxBOTTOM,
630 Position of the bitmap in the button, see wxButton::SetBitmapPosition().}
41e69d79 631@row3col{default, @ref overview_xrcformat_type_bool,
18b9d1a1 632 Should this button be the default button in dialog (default: 0)?}
be42eeb0
VS
633@endTable
634
a302d595
VS
635
636@subsubsection xrc_wxcalendarctrl wxCalendarCtrl
be42eeb0
VS
637
638No additional properties.
639
a302d595
VS
640
641@subsubsection xrc_wxcheckbox wxCheckBox
be42eeb0
VS
642
643@beginTable
644@hdr3col{property, type, description}
41e69d79 645@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 646 Label to use for the checkbox (required).}
41e69d79 647@row3col{checked, @ref overview_xrcformat_type_bool,
be42eeb0
VS
648 Should the checkbox be checked initially (default: 0)?}
649@endTable
650
a302d595
VS
651
652@subsubsection xrc_wxchecklistbox wxCheckListBox
be42eeb0
VS
653
654@beginTable
655@hdr3col{property, type, description}
518fafd5 656@row3col{content, items,
be42eeb0
VS
657 Content of the control; this property has any number of @c \<item\> XML
658 elements as its children, with the items text as their text values
659 (default: empty).}
660@endTable
661
662The @c \<item\> elements have listbox items' labels as their text values. They
663can also have optional @c checked XML attribute -- if set to "1", the value is
664initially checked.
665
666Example:
667@code
668<object class="wxCheckListBox">
669 <content>
670 <item checked="1">Download library</item>
671 <item checked="1">Compile samples</item>
672 <item checked="1">Skim docs</item>
673 <item checked="1">Finish project</item>
674 <item>Wash car</item>
675 </content>
676</object>
677@endcode
678
a302d595
VS
679
680@subsubsection xrc_wxchoice wxChoice
be42eeb0
VS
681
682@beginTable
683@hdr3col{property, type, description}
684@row3col{selection, integer,
685 Index of the initially selected item or -1 for no selection (default: -1).}
518fafd5 686@row3col{content, items,
be42eeb0
VS
687 Content of the control; this property has any number of @c \<item\> XML
688 elements as its children, with the items text as their text values
689 (default: empty).}
690@endTable
691
692Example:
693@code
694<object class="wxChoice" name="controls_choice">
695 <content>
696 <item>See</item>
697 <item>Hear</item>
698 <item>Feel</item>
699 <item>Smell</item>
700 <item>Taste</item>
701 <item>The Sixth Sense!</item>
702 </content>
703</object>
704@endcode
705
a302d595
VS
706
707@subsubsection xrc_wxchoicebook wxChoicebook
be42eeb0 708
be42eeb0
VS
709A choicebook can have one or more child objects of the @c choicebookpage
710pseudo-class (similarly to @ref xrc_wxnotebook "wxNotebook" and its
326462ae
VZ
711@c notebookpage) and one child object of the @ref xrc_wximagelist class.
712@c choicebookpage objects have the following properties:
be42eeb0
VS
713
714@beginTable
715@hdr3col{property, type, description}
41e69d79 716@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 717 Sheet page's title (required).}
41e69d79 718@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 719 Bitmap shown alongside the label (default: none).}
326462ae
VZ
720@row3col{image, integer,
721 The zero-based index of the image associated with the item
722 into the image list.}
41e69d79 723@row3col{selected, @ref overview_xrcformat_type_bool,
be42eeb0
VS
724 Is the page selected initially (only one page can be selected; default: 0)?}
725@endTable
726
727Each @c choicebookpage has exactly one non-toplevel window as its child.
728
a302d595 729
53cdd2c1
VZ
730@subsubsection xrc_wxcommandlinkbutton wxCommandLinkButton
731
732The wxCommandLinkButton contains a main title-like @c label and an optional
733@c note for longer description. The main @c label and the @c note can be
734concatenated into a single string using a new line character between them
735(notice that the @c note part can have more new lines in it).
736
737@beginTable
738@hdr3col{property, type, description}
739@row3col{label, @ref overview_xrcformat_type_text,
740 First line of text on the button, typically the label of an action that
741 will be made when the button is pressed. }
742@row3col{note, @ref overview_xrcformat_type_text,
743 Second line of text describing the action performed when the button is pressed. }
744@endTable
745
746
a302d595 747@subsubsection xrc_wxcollapsiblepane wxCollapsiblePane
be42eeb0
VS
748
749@beginTable
750@hdr3col{property, type, description}
41e69d79 751@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 752 Label to use for the collapsible section (required).}
41e69d79 753@row3col{collapsed, @ref overview_xrcformat_type_bool,
be42eeb0
VS
754 Should the pane be collapsed initially (default: 0)?}
755@endTable
756
757wxCollapsiblePane may contain single optional child object of the @c panewindow
758pseudo-class type. @c panewindow itself must contain exactly one child that
41e69d79 759is a @ref overview_xrcformat_sizers "sizer" or a non-toplevel window
be42eeb0
VS
760object.
761
a302d595
VS
762
763@subsubsection xrc_wxcolourpickerctrl wxColourPickerCtrl
be42eeb0
VS
764
765@beginTable
766@hdr3col{property, type, description}
41e69d79 767@row3col{value, @ref overview_xrcformat_type_colour,
be42eeb0
VS
768 Initial value of the control (default: wxBLACK).}
769@endTable
770
a302d595
VS
771
772@subsubsection xrc_wxcombobox wxComboBox
be42eeb0
VS
773
774@beginTable
775@hdr3col{property, type, description}
776@row3col{selection, integer,
777 Index of the initially selected item or -1 for no selection (default: not used).}
518fafd5 778@row3col{content, items,
be42eeb0
VS
779 Content of the control; this property has any number of @c \<item\> XML
780 elements as its children, with the items text as their text values
781 (default: empty).}
41e69d79 782@row3col{value, @ref overview_xrcformat_type_string,
be42eeb0
VS
783 Initial value in the control (doesn't have to be one of @ content values;
784 default: empty).}
785@endTable
786
787If both @c value and @c selection are specified and @c selection is not -1,
788then @c selection takes precedence.
789
790Example:
791@code
792<object class="wxComboBox" name="controls_combobox">
793 <style>wxCB_DROPDOWN</style>
794 <value>nedit</value>
795 <content>
796 <item>vim</item>
797 <item>emacs</item>
798 <item>notepad.exe</item>
799 <item>bbedit</item>
800 </content>
801</object>
802@endcode
a302d595
VS
803
804@subsubsection xrc_wxdatepickerctrl wxDatePickerCtrl
be42eeb0
VS
805
806No additional properties.
807
a302d595
VS
808
809@subsubsection xrc_wxdialog wxDialog
be42eeb0
VS
810
811@beginTable
812@hdr3col{property, type, description}
41e69d79 813@row3col{title, @ref overview_xrcformat_type_text,
be42eeb0 814 Dialog's title (default: empty).}
41e69d79 815@row3col{icon, @ref overview_xrcformat_type_bitmap,
be42eeb0 816 Dialog's icon (default: not used).}
41e69d79 817@row3col{centered, @ref overview_xrcformat_type_bool,
be42eeb0
VS
818 Whether the dialog should be centered on the screen (default: 0).}
819@endTable
820
821wxDialog may have optional children: either exactly one
41e69d79 822@ref overview_xrcformat_sizers "sizer" child or any number of non-toplevel window
be42eeb0
VS
823objects. If sizer child is used, it sets
824@ref wxSizer::SetSizeHints() "size hints" too.
a302d595
VS
825
826@subsubsection xrc_wxdirpickerctrl wxDirPickerCtrl
be42eeb0
VS
827
828@beginTable
829@hdr3col{property, type, description}
41e69d79 830@row3col{value, @ref overview_xrcformat_type_string,
be42eeb0 831 Initial value of the control (default: empty).}
41e69d79 832@row3col{message, @ref overview_xrcformat_type_text,
be42eeb0
VS
833 Message shown to the user in wxDirDialog shown by the control (required).}
834@endTable
835
a302d595 836
0d14e4f2
VZ
837@subsubsection xrc_wxfilectrl wxFileCtrl
838
839@beginTable
840@hdr3col{property, type, description}
841@row3col{defaultdirectory, @ref overview_xrcformat_type_string,
842 Sets the current directory displayed in the control. }
843@row3col{defaultfilename, @ref overview_xrcformat_type_string,
844 Selects a certain file.}
845@row3col{wildcard, @ref overview_xrcformat_type_string,
846 Sets the wildcard, which can contain multiple file types, for example:
847 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".}
848@endTable
849
850
a302d595 851@subsubsection xrc_wxfilepickerctrl wxFilePickerCtrl
be42eeb0
VS
852
853@beginTable
854@hdr3col{property, type, description}
41e69d79 855@row3col{value, @ref overview_xrcformat_type_string,
be42eeb0 856 Initial value of the control (default: empty).}
41e69d79 857@row3col{message, @ref overview_xrcformat_type_text,
be42eeb0 858 Message shown to the user in wxDirDialog shown by the control (required).}
41e69d79 859@row3col{wildcard, @ref overview_xrcformat_type_string,
0d14e4f2
VZ
860 Sets the wildcard, which can contain multiple file types, for example:
861 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif".}
be42eeb0
VS
862@endTable
863
a302d595
VS
864
865@subsubsection xrc_wxfontpickerctrl wxFontPickerCtrl
be42eeb0
VS
866
867@beginTable
868@hdr3col{property, type, description}
41e69d79 869@row3col{value, @ref overview_xrcformat_type_font,
be42eeb0
VS
870 Initial value of the control (default: wxNORMAL_FONT).}
871@endTable
a302d595
VS
872
873@subsubsection xrc_wxfrane wxFrame
be42eeb0
VS
874
875@beginTable
876@hdr3col{property, type, description}
41e69d79 877@row3col{title, @ref overview_xrcformat_type_text,
be42eeb0 878 Frame's title (default: empty).}
41e69d79 879@row3col{icon, @ref overview_xrcformat_type_bitmap,
be42eeb0 880 Frame's icon (default: not used).}
41e69d79 881@row3col{centered, @ref overview_xrcformat_type_bool,
be42eeb0
VS
882 Whether the frame should be centered on the screen (default: 0).}
883@endTable
884
885wxFrame may have optional children: either exactly one
41e69d79 886@ref overview_xrcformat_sizers "sizer" child or any number of non-toplevel window
be42eeb0
VS
887objects. If sizer child is used, it sets
888@ref wxSizer::SetSizeHints() "size hints" too.
889
a302d595
VS
890
891@subsubsection xrc_wxgauge wxGauge
be42eeb0
VS
892
893@beginTable
894@hdr3col{property, type, description}
895@row3col{range, integer,
033508e1 896 Maximum value of the gauge (default: 100).}
be42eeb0
VS
897@row3col{value, integer,
898 Initial value of the control (default: 0).}
41e69d79 899@row3col{shadow, @ref overview_xrcformat_type_dimension,
be42eeb0 900 Rendered shadow size (default: none; ignored by most platforms).}
41e69d79 901@row3col{bezel, @ref overview_xrcformat_type_dimension,
be42eeb0
VS
902 Rendered bezel size (default: none; ignored by most platforms).}
903@endTable
a302d595
VS
904
905@subsubsection xrc_wxgenericdirctrl wxGenericDirCtrl
be42eeb0
VS
906
907@beginTable
908@hdr3col{property, type, description}
41e69d79 909@row3col{defaultfolder, @ref overview_xrcformat_type_text,
be42eeb0 910 Initial folder (default: empty).}
41e69d79 911@row3col{filter, @ref overview_xrcformat_type_text,
be42eeb0
VS
912 Filter string, using the same syntax as used by wxFileDialog, e.g.
913 "All files (*.*)|*.*|JPEG files (*.jpg)|*.jpg" (default: empty).}
914@row3col{defaultfilter, integer,
915 Zero-based index of default filter (default: 0).}
916@endTable
a302d595
VS
917
918@subsubsection xrc_wxgrid wxGrid
be42eeb0
VS
919
920No additional properties.
921
a302d595
VS
922
923@subsubsection xrc_wxhtmlwindow wxHtmlWindow
be42eeb0
VS
924
925@beginTable
926@hdr3col{property, type, description}
41e69d79 927@row3col{url, @ref overview_xrcformat_type_url,
be42eeb0 928 Page to display in the window.}
41e69d79 929@row3col{htmlcode, @ref overview_xrcformat_type_text,
be42eeb0 930 HTML markup to display in the window.}
41e69d79 931@row3col{borders, @ref overview_xrcformat_type_dimension,
be42eeb0
VS
932 Border around HTML content (default: 0).}
933@endTable
934
935At most one of @c url and @c htmlcode properties may be specified, they are
936mutually exclusive. If neither is set, the window is initialized to show empty
937page.
938
a302d595
VS
939
940@subsubsection xrc_wxhyperlinkctrl wxHyperlinkCtrl
be42eeb0
VS
941
942@beginTable
943@hdr3col{property, type, description}
41e69d79 944@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 945 Label to display on the control (required).}
41e69d79 946@row3col{url, @ref overview_xrcformat_type_url,
be42eeb0
VS
947 URL to open when the link is clicked (required).}
948@endTable
949
a302d595 950
326462ae
VZ
951@subsubsection xrc_wximagelist wxImageList
952
953The imagelist can be used as a child object for the following classes:
954 - @ref xrc_wxchoicebook
955 - @ref xrc_wxlistbook
956 - @ref xrc_wxlistctrl
957 - @ref xrc_wxnotebook
958 - @ref xrc_wxtreebook
959 - @ref xrc_wxtreectrl
960
961The available properties are:
962
963@beginTable
964@hdr3col{property, type, description}
965@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
966 Adds a new image by keeping its optional mask bitmap (see below).}
967@row3col{mask, @ref overview_xrcformat_type_bool,
968 If masks should be created for all images (default: true).}
969@row3col{size, @ref overview_xrcformat_type_size,
fe97acf0 970 The size of the images in the list (default: the size of the first bitmap).}
326462ae
VZ
971@endTable
972
973Example:
974@code
975<imagelist>
976 <size>32,32</size>
977 <bitmap stock_id="wxART_QUESTION"/>
978 <bitmap stock_id="wxART_INFORMATION"/>
979</imagelist>
980@endcode
981
982In the specific case of the @ref xrc_wxlistctrl, the tag can take the name
983@c \<imagelist-small\> to define the 'small' image list, related to the flag
984@c wxIMAGE_LIST_SMALL (see wxListCtrl documentation).
985
986
a302d595 987@subsubsection xrc_wxlistbox wxListBox
be42eeb0
VS
988
989@beginTable
990@hdr3col{property, type, description}
991@row3col{selection, integer,
992 Index of the initially selected item or -1 for no selection (default: -1).}
518fafd5 993@row3col{content, items,
be42eeb0
VS
994 Content of the control; this property has any number of @c \<item\> XML
995 elements as its children, with the items text as their text values
996 (default: empty).}
997@endTable
998
999Example:
1000@code
1001<object class="wxListBox" name="controls_listbox">
1002 <size>250,160</size>
1003 <style>wxLB_SINGLE</style>
1004 <content>
1005 <item>Milk</item>
1006 <item>Pizza</item>
1007 <item>Bread</item>
1008 <item>Orange juice</item>
1009 <item>Paper towels</item>
1010 </content>
1011</object>
1012@endcode
1013
a302d595
VS
1014
1015@subsubsection xrc_wxlistbook wxListbook
be42eeb0 1016
be42eeb0
VS
1017A listbook can have one or more child objects of the @c listbookpage
1018pseudo-class (similarly to @ref xrc_wxnotebook "wxNotebook" and its
326462ae
VZ
1019@c notebookpage) and one child object of the @ref xrc_wximagelist class.
1020@c listbookpage objects have the following properties:
be42eeb0
VS
1021
1022@beginTable
1023@hdr3col{property, type, description}
41e69d79 1024@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1025 Sheet page's title (required).}
41e69d79 1026@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1027 Bitmap shown alongside the label (default: none).}
326462ae
VZ
1028@row3col{image, integer,
1029 The zero-based index of the image associated with the item
1030 into the image list.}
41e69d79 1031@row3col{selected, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1032 Is the page selected initially (only one page can be selected; default: 0)?}
1033@endTable
1034
1035Each @c listbookpage has exactly one non-toplevel window as its child.
1036
a302d595
VS
1037
1038@subsubsection xrc_wxlistctrl wxListCtrl
be42eeb0 1039
ef18e792 1040A list control can have one or more child objects of the class @ref xrc_wxlistitem
326462ae
VZ
1041and one or more objects of the @ref xrc_wximagelist class. The latter is
1042defined either using @c \<imagelist\> tag for the control with @c wxLC_ICON
1043style or using @c \<imagelist-small\> tag for the control with @c
1044wxLC_SMALL_ICON style.
1045
ef18e792
VZ
1046Report mode list controls (i.e. created with @c wxLC_REPORT style) can in
1047addition have one or more @ref xrc_wxlistcol child elements.
1048
0654158b 1049@paragraph xrc_wxlistcol listcol
ef18e792
VZ
1050
1051The @c listcol class can only be used for wxListCtrl children. It can have the
1052following properties:
1053@beginTable
1054@hdr3col{property, type, description}
1055@row3col{align, wxListColumnFormat,
1056 The alignment for the item.
1057 Can be one of @c wxLIST_FORMAT_LEFT, @c wxLIST_FORMAT_RIGHT or
1058 @c wxLIST_FORMAT_CENTRE.}
1059@row3col{text, @ref overview_xrcformat_type_string,
1060 The title of the column. }
1061@row3col{width, integer,
1062 The column width. }
7243eb6d
VS
1063@row3col{image, integer,
1064 The zero-based index of the image associated with the item in the 'small' image list. }
ef18e792
VZ
1065@endTable
1066
1067The columns are appended to the control in order of their appearance and may be
1068referenced by 0-based index in the @c col attributes of subsequent @c listitem
1069objects.
1070
0654158b 1071@paragraph xrc_wxlistitem listitem
326462ae
VZ
1072
1073The @c listitem is a child object for the class @ref xrc_wxlistctrl.
1074It can have the following properties:
1075
1076@beginTable
1077@hdr3col{property, type, description}
1078@row3col{align, wxListColumnFormat,
1079 The alignment for the item.
1080 Can be one of @c wxLIST_FORMAT_LEFT, @c wxLIST_FORMAT_RIGHT or
1081 @c wxLIST_FORMAT_CENTRE.}
1082@row3col{bg, @ref overview_xrcformat_type_colour,
1083 The background color for the item.}
1084@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
1085 Add a bitmap to the (normal) @ref xrc_wximagelist associated with the
1086 @ref xrc_wxlistctrl parent and associate it with this item.
1087 If the imagelist is not defined it will be created implicitly.}
1088@row3col{bitmap-small, @ref overview_xrcformat_type_bitmap,
1089 Add a bitmap in the 'small' @ref xrc_wximagelist associated with the
1090 @ref xrc_wxlistctrl parent and associate it with this item.
1091 If the 'small' imagelist is not defined it will be created implicitly.}
ef18e792
VZ
1092@row3col{col, integer,
1093 The zero-based column index.}
326462ae
VZ
1094@row3col{image, integer,
1095 The zero-based index of the image associated with the item
1096 in the (normal) image list.}
1097@row3col{image-small, integer,
1098 The zero-based index of the image associated with the item
1099 in the 'small' image list.}
326462ae
VZ
1100@row3col{data, integer,
1101 The client data for the item.}
1102@row3col{font, @ref overview_xrcformat_type_font,
1103 The font for the item.}
1104@row3col{image, integer,
1105 The zero-based index of the image associated with the item
1106 into the image list.}
326462ae 1107@row3col{state, @ref overview_xrcformat_type_style,
ef18e792 1108 The item state. Can be any combination of the following values:
326462ae 1109 - @c wxLIST_STATE_FOCUSED: The item has the focus.
0654158b 1110 - @c wxLIST_STATE_SELECTED: The item is selected.}
326462ae 1111@row3col{text, @ref overview_xrcformat_type_string,
ef18e792 1112 The text label for the item. }
326462ae
VZ
1113@row3col{textcolour, @ref overview_xrcformat_type_colour,
1114 The text colour for the item. }
326462ae
VZ
1115@endTable
1116
1117Notice that the item position can't be specified here, the items are appended
1118to the list control in order of their appearance.
be42eeb0 1119
a302d595
VS
1120
1121@subsubsection xrc_wxmdiparentframe wxMDIParentFrame
be42eeb0
VS
1122
1123wxMDIParentFrame supports the same properties that @ref xrc_wxfrane does.
1124
1125wxMDIParentFrame may have optional children. When used, the child objects
1126must be of wxMDIChildFrame type.
1127
a302d595
VS
1128
1129@subsubsection xrc_wxmdichildframe wxMDIChildFrame
be42eeb0
VS
1130
1131wxMDIChildFrame supports the same properties that @ref xrc_wxfrane and
1132@ref xrc_wxmdiparentframe do.
1133
1134wxMDIChildFrame can only be used as as immediate child of @ref
1135xrc_wxmdiparentframe.
1136
1137wxMDIChildFrame may have optional children: either exactly one
41e69d79 1138@ref overview_xrcformat_sizers "sizer" child or any number of non-toplevel window
be42eeb0
VS
1139objects. If sizer child is used, it sets
1140@ref wxSizer::SetSizeHints() "size hints" too.
1141
a302d595
VS
1142
1143@subsubsection xrc_wxmenu wxMenu
be42eeb0
VS
1144
1145@beginTable
1146@hdr3col{property, type, description}
41e69d79 1147@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0
VS
1148 Menu's label (default: empty, but required for menus other
1149 than popup menus).}
41e69d79 1150@row3col{help, @ref overview_xrcformat_type_text,
be42eeb0
VS
1151 Help shown in statusbar when the menu is selected (only for submenus
1152 of another wxMenu, default: none).}
41e69d79 1153@row3col{enabled, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1154 Is the submenu item enabled (only for submenus of another wxMenu,
1155 default: 1)?}
1156@endTable
1157
1158Note that unlike most controls, wxMenu does @em not have
41e69d79 1159@ref overview_xrcformat_std_props.
be42eeb0
VS
1160
1161A menu object can have one or more child objects of the wxMenuItem or wxMenu
1162classes or @c break or @c separator pseudo-classes.
1163
1164The @c separator pseudo-class is used to insert separators into the menu and
1165has neither properties nor children. Likewise, @c break inserts a break (see
1166wxMenu::Break()).
1167
1168wxMenuItem objects support the following properties:
1169
1170@beginTable
1171@hdr3col{property, type, description}
41e69d79 1172@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1173 Item's label (required).}
41e69d79 1174@row3col{accel, @ref overview_xrcformat_type_text_notrans,
be42eeb0 1175 Item's accelerator (default: none).}
41e69d79 1176@row3col{radio, @ref overview_xrcformat_type_bool,
be42eeb0 1177 Item's kind is wxITEM_RADIO (default: 0)?}
41e69d79 1178@row3col{checkable, @ref overview_xrcformat_type_bool,
be42eeb0 1179 Item's kind is wxITEM_CHECK (default: 0)?}
41e69d79 1180@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1181 Bitmap to show with the item (default: none).}
41e69d79 1182@row3col{bitmap2, @ref overview_xrcformat_type_bitmap,
be42eeb0 1183 Bitmap for the checked state (wxMSW, if checkable; default: none).}
41e69d79 1184@row3col{help, @ref overview_xrcformat_type_text,
be42eeb0 1185 Help shown in statusbar when the item is selected (default: none).}
41e69d79 1186@row3col{enabled, @ref overview_xrcformat_type_bool,
be42eeb0 1187 Is the item enabled (default: 1)?}
41e69d79 1188@row3col{checked, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1189 Is the item checked initially (default: 0)?}
1190@endTable
1191
1192Example:
1193@code
1194<object class="wxMenu" name="menu_edit">
1195 <style>wxMENU_TEAROFF</style>
1196 <label>_Edit</label>
1197 <object class="wxMenuItem" name="wxID_FIND">
1198 <label>_Find...</label>
1199 <accel>Ctrl-F</accel>
1200 </object>
1201 <object class="separator"/>
1202 <object class="wxMenuItem" name="menu_fuzzy">
1203 <label>Translation is _fuzzy</label>
1204 <checkable>1</checkable>
1205 </object>
1206 <object class="wxMenu" name="submenu">
1207 <label>A submenu</label>
1208 <object class="wxMenuItem" name="foo">...</object>
1209 ...
1210 </object>
1211 <object class="separator" platform="unix"/>
1212 <object class="wxMenuItem" name="wxID_PREFERENCES" platform="unix">
1213 <label>_Preferences</label>
1214 </object>
1215</object>
1216@endcode
a302d595
VS
1217
1218@subsubsection xrc_wxmenubar wxMenuBar
be42eeb0
VS
1219
1220No properties. Note that unlike most controls, wxMenuBar does @em not have
41e69d79 1221@ref overview_xrcformat_std_props.
be42eeb0
VS
1222
1223A menubar can have one or more child objects of the @ref xrc_wxmenu "wxMenu"
1224class.
1225
a302d595
VS
1226
1227@subsubsection xrc_wxnotebook wxNotebook
be42eeb0 1228
be42eeb0 1229A notebook can have one or more child objects of the @c notebookpage
326462ae
VZ
1230pseudo-class and one child object of the @ref xrc_wximagelist class.
1231@c notebookpage objects have the following properties:
be42eeb0
VS
1232
1233@beginTable
1234@hdr3col{property, type, description}
41e69d79 1235@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1236 Page's title (required).}
41e69d79 1237@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1238 Bitmap shown alongside the label (default: none).}
326462ae
VZ
1239@row3col{image, integer,
1240 The zero-based index of the image associated with the item
1241 into the image list.}
41e69d79 1242@row3col{selected, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1243 Is the page selected initially (only one page can be selected; default: 0)?}
1244@endTable
1245
1246Each @c notebookpage has exactly one non-toplevel window as its child.
1247
1248Example:
1249@code
1250<object class="wxNotebook">
1251 <style>wxBK_BOTTOM</style>
1252 <object class="notebookpage">
1253 <label>Page 1</label>
1254 <object class="wxPanel" name="page_1">
1255 ...
1256 </object>
1257 </object>
1258 <object class="notebookpage">
1259 <label>Page 2</label>
1260 <object class="wxPanel" name="page_2">
1261 ...
1262 </object>
1263 </object>
1264</object>
1265@endcode
1266
a302d595
VS
1267
1268@subsubsection xrc_wxownerdrawncombobox wxOwnerDrawnComboBox
be42eeb0
VS
1269
1270wxOwnerDrawnComboBox has the same properties as
1271@ref xrc_wxcombobox "wxComboBox", plus the following additional properties:
1272
1273@beginTable
1274@hdr3col{property, type, description}
41e69d79 1275@row3col{buttonsize, @ref overview_xrcformat_type_size,
be42eeb0
VS
1276 Size of the dropdown button (default: default).}
1277@endTable
1278
a302d595
VS
1279
1280@subsubsection xrc_wxpanel wxPanel
be42eeb0
VS
1281
1282No additional properties.
1283
1284wxPanel may have optional children: either exactly one
41e69d79 1285@ref overview_xrcformat_sizers "sizer" child or any number of non-toplevel window
be42eeb0
VS
1286objects.
1287
a302d595
VS
1288
1289@subsubsection xrc_wxpropertysheetdialog wxPropertySheetDialog
be42eeb0
VS
1290
1291@beginTable
1292@hdr3col{property, type, description}
41e69d79 1293@row3col{title, @ref overview_xrcformat_type_text,
be42eeb0 1294 Dialog's title (default: empty).}
41e69d79 1295@row3col{icon, @ref overview_xrcformat_type_bitmap,
be42eeb0 1296 Dialog's icon (default: not used).}
41e69d79 1297@row3col{centered, @ref overview_xrcformat_type_bool,
be42eeb0 1298 Whether the dialog should be centered on the screen (default: 0).}
41e69d79 1299@row3col{buttons, @ref overview_xrcformat_type_style,
be42eeb0
VS
1300 Buttons to show, combination of flags accepted by
1301 wxPropertySheetDialog::CreateButtons() (default: 0).}
1302@endTable
1303
1304A sheet dialog can have one or more child objects of the @c propertysheetpage
1305pseudo-class (similarly to @ref xrc_wxnotebook "wxNotebook" and its
1306@c notebookpage). @c propertysheetpage objects have the following properties:
1307
1308@beginTable
1309@hdr3col{property, type, description}
41e69d79 1310@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1311 Sheet page's title (required).}
41e69d79 1312@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1313 Bitmap shown alongside the label (default: none).}
41e69d79 1314@row3col{selected, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1315 Is the page selected initially (only one page can be selected; default: 0)?}
1316@endTable
1317
1318Each @c propertysheetpage has exactly one non-toplevel window as its child.
1319
a302d595
VS
1320
1321@subsubsection xrc_wxradiobutton wxRadioButton
be42eeb0
VS
1322
1323@beginTable
1324@hdr3col{property, type, description}
41e69d79 1325@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1326 Label shown on the radio button (required).}
41e69d79 1327@row3col{value, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1328 Initial value of the control (default: 0).}
1329@endTable
1330
a302d595
VS
1331
1332@subsubsection xrc_wxradiobox wxRadioBox
be42eeb0
VS
1333
1334@beginTable
1335@hdr3col{property, type, description}
41e69d79 1336@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0
VS
1337 Label for the whole box (required).}
1338@row3col{dimension, integer,
1339 Specifies the maximum number of rows (if style contains
1340 @c wxRA_SPECIFY_ROWS) or columns (if style contains @c wxRA_SPECIFY_COLS)
1341 for a two-dimensional radiobox (default: 1).}
1342@row3col{selection, integer,
1343 Index of the initially selected item or -1 for no selection (default: -1).}
518fafd5 1344@row3col{content, items,
be42eeb0
VS
1345 Content of the control; this property has any number of @c \<item\> XML
1346 elements as its children, with the items text as their text values
1347 (see below; default: empty).}
1348@endTable
1349
1350The @c \<item\> elements have radio buttons' labels as their text values. They
1351can also have some optional XML @em attributes (not properties!):
1352
1353@beginTable
1354@hdr3col{attribute, type, description}
41e69d79 1355@row3col{tooltip, @ref overview_xrcformat_type_string,
be42eeb0 1356 Tooltip to show over this ratio button (default: none).}
41e69d79 1357@row3col{helptext, @ref overview_xrcformat_type_string,
be42eeb0 1358 Contextual help for this radio button (default: none).}
41e69d79 1359@row3col{enabled, @ref overview_xrcformat_type_bool,
be42eeb0 1360 Is the button enabled (default: 1)?}
41e69d79 1361@row3col{hidden, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1362 Is the button hidden initially (default: 0)?}
1363@endTable
1364
1365Example:
1366@code
1367<object class="wxRadioBox" name="controls_radiobox">
1368 <style>wxRA_SPECIFY_COLS</style>
1369 <label>Radio stations</label>
1370 <dimension>1</dimension>
1371 <selection>0</selection>
1372 <content>
1373 <item tooltip="Powerful radio station" helptext="This station is for amateurs of hard rock and heavy metal">Power 108</item>
1374 <item tooltip="Disabled radio station" enabled="0">Power 0</item>
1375 <item tooltip="">WMMS 100.7</item>
1376 <item tooltip="E=mc^2">Energy 98.3</item>
1377 <item helptext="Favourite chukcha's radio">CHUM FM</item>
1378 <item>92FM</item>
1379 <item hidden="1">Very quit station</item>
1380 </content>
1381</object>
1382@endcode
1383
a302d595
VS
1384
1385@subsubsection xrc_wxrichtextctrl wxRichTextCtrl
be42eeb0
VS
1386
1387@beginTable
1388@hdr3col{property, type, description}
41e69d79 1389@row3col{value, @ref overview_xrcformat_type_text,
be42eeb0
VS
1390 Initial value of the control (default: empty).}
1391@row3col{maxlength, integer,
1392 Maximum length of the text entered (default: unlimited).}
1393@endTable
1394
a302d595
VS
1395
1396@subsubsection xrc_wxscrollbar wxScrollBar
be42eeb0
VS
1397
1398@beginTable
1399@hdr3col{property, type, description}
1400@row3col{value, integer,
1401 Initial position of the scrollbar (default: 0).}
1402@row3col{range, integer,
1403 Maximum value of the gauge (default: 10).}
1404@row3col{thumbsize, integer,
1405 Size of the thumb (default: 1).}
1406@row3col{pagesize, integer,
1407 Page size (default: 1).}
1408@endTable
a302d595
VS
1409
1410@subsubsection xrc_wxscrolledwindow wxScrolledWindow
be42eeb0
VS
1411
1412@beginTable
1413@hdr3col{property, type, description}
41e69d79 1414@row3col{scrollrate, @ref overview_xrcformat_type_size,
be42eeb0
VS
1415 Scroll rate in @em x and @em y directions (default: not set;
1416 required if the window has a sizer child).}
1417@endTable
1418
1419wxScrolledWindow may have optional children: either exactly one
41e69d79 1420@ref overview_xrcformat_sizers "sizer" child or any number of non-toplevel window
be42eeb0
VS
1421objects. If sizer child is used, wxSizer::FitInside() is used (instead of
1422wxSizer::Fit() as usual) and so the children don't determine scrolled window's
1423minimal size, they only affect @em virtual size. Usually, both @c scrollrate
1424and either @c size or @c minsize on containing sizer item should be used
1425in this case.
1426
a302d595
VS
1427
1428@subsubsection xrc_wxsimplehtmllistbox wxSimpleHtmlListBox
a302d595 1429
be42eeb0
VS
1430wxSimpleHtmlListBox has same properties as @ref xrc_wxlistbox "wxListBox".
1431The only difference is that the text contained in @c \<item\> elements is
1432HTML markup. Note that the markup has to be escaped:
1433
1434@code
1435<object class="wxSimpleHtmlListBox">
1436 <content>
1437 <item>&lt;b&gt;Bold&lt;/b&gt; Milk</item>
1438 </content>
1439</object>
1440@endcode
1441
1442(X)HTML markup elements cannot be included directly:
1443
1444@code
1445<object class="wxSimpleHtmlListBox">
1446 <content>
1447 <!-- This is incorrect, doesn't work! -->
1448 <item><b>Bold</b> Milk</item>
1449 </content>
1450</object>
1451@endcode
1452
1453
1454@subsubsection xrc_wxslider wxSlider
1455
1456@beginTable
1457@hdr3col{property, type, description}
1458@row3col{value, integer,
033508e1 1459 Initial value of the control (default: 0).}
be42eeb0 1460@row3col{min, integer,
033508e1 1461 Minimum allowed value (default: 0).}
be42eeb0 1462@row3col{max, integer,
033508e1 1463 Maximum allowed value (default: 100).}
be42eeb0
VS
1464@row3col{pagesize, integer,
1465 Line size; number of steps the slider moves when the user moves
1466 pages up or down (default: unset).}
1467@row3col{linesize, integer,
1468 Line size; number of steps the slider moves when the user moves it
1469 up or down a line (default: unset).}
1470@row3col{tickfreq, integer,
1471 Tick marks frequency (Windows only; default: unset).}
1472@row3col{tick, integer,
1473 Tick position (Windows only; default: unset).}
1474@row3col{thumb, integer,
1475 Thumb length (Windows only; default: unset).}
1476@row3col{selmin, integer,
1477 Selection start position (Windows only; default: unset).}
1478@row3col{selmax, integer,
1479 Selection end position (Windows only; default: unset).}
1480@endTable
1481
a302d595 1482
07c22580 1483@subsubsection xrc_wxspinbutton wxSpinButton
be42eeb0
VS
1484
1485@beginTable
1486@hdr3col{property, type, description}
1487@row3col{value, integer,
033508e1 1488 Initial value of the control (default: 0).}
be42eeb0 1489@row3col{min, integer,
033508e1 1490 Minimum allowed value (default: 0).}
be42eeb0 1491@row3col{max, integer,
033508e1 1492 Maximum allowed value (default: 100).}
be42eeb0
VS
1493@endTable
1494
a302d595 1495
07c22580
VS
1496@subsubsection xrc_wxspinctrl wxSpinCtrl
1497
1498wxSpinCtrl supports the properties as @ref xrc_wxspinbutton.
1499
1500
a302d595 1501@subsubsection xrc_wxsplitterwindow wxSplitterWindow
be42eeb0
VS
1502
1503@beginTable
1504@hdr3col{property, type, description}
41e69d79 1505@row3col{orientation, @ref overview_xrcformat_type_string,
be42eeb0
VS
1506 Orientation of the splitter, either "vertical" or "horizontal" (default: horizontal).}
1507@row3col{sashpos, integer,
1508 Initial position of the sash (default: 0).}
1509@row3col{minsize, integer,
1510 Minimum child size (default: not set).}
881f5a1c 1511@row3col{gravity, @ref overview_xrcformat_type_float,
be42eeb0
VS
1512 Sash gravity, see wxSplitterWindow::SetSashGravity() (default: not set).}
1513@endTable
1514
1515wxSplitterWindow must have one or two children that are non-toplevel window
1516objects. If there's only one child, it is used as wxSplitterWindow's only
1517visible child. If there are two children, the first one is used for left/top
1518child and the second one for right/bottom child window.
1519
a302d595
VS
1520
1521@subsubsection xrc_wxsearchctrl wxSearchCtrl
be42eeb0
VS
1522
1523@beginTable
1524@hdr3col{property, type, description}
41e69d79 1525@row3col{value, @ref overview_xrcformat_type_text,
be42eeb0
VS
1526 Initial value of the control (default: empty).}
1527@endTable
1528
a302d595
VS
1529
1530@subsubsection xrc_wxstatusbar wxStatusBar
be42eeb0
VS
1531
1532@beginTable
1533@hdr3col{property, type, description}
1534@row3col{fields, integer,
1535 Number of status bar fields (default: 1).}
41e69d79 1536@row3col{widths, @ref overview_xrcformat_type_string,
be42eeb0
VS
1537 Comma-separated list of @em fields integers. Each value specifies width
1538 of one field; the values are interpreted using the same convention used
1539 by wxStatusBar::SetStatusWidths().}
41e69d79 1540@row3col{styles, @ref overview_xrcformat_type_string,
be42eeb0
VS
1541 Comma-separated list of @em fields flags. Each value specifies status bar
1542 fieldd style and can be one of @c wxSB_NORMAL, @c wxSB_FLAT or
1543 @c wxSB_RAISED. See wxStatusBar::SetStatusStyles() for their description.}
1544@endTable
1545
1546
a302d595
VS
1547
1548@subsubsection xrc_wxstaticbitmap wxStaticBitmap
be42eeb0
VS
1549
1550@beginTable
1551@hdr3col{property, type, description}
41e69d79 1552@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0
VS
1553 Bitmap to display (required).}
1554@endTable
a302d595
VS
1555
1556@subsubsection xrc_wxstaticbox wxStaticBox
be42eeb0
VS
1557
1558@beginTable
1559@hdr3col{property, type, description}
41e69d79 1560@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0
VS
1561 Static box's label (required).}
1562@endTable
1563
a302d595
VS
1564
1565@subsubsection xrc_wxstaticline wxStaticLine
be42eeb0
VS
1566
1567No additional properties.
1568
a302d595
VS
1569
1570@subsubsection xrc_wxstatictext wxStaticText
be42eeb0
VS
1571
1572@beginTable
1573@hdr3col{property, type, description}
41e69d79 1574@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0
VS
1575 Label to display (required).}
1576@row3col{wrap, integer,
d5877228 1577 Wrap the text so that each line is at most the given number of pixels, see
be42eeb0
VS
1578 wxStaticText::Wrap() (default: no wrap).}
1579@endTable
a302d595
VS
1580
1581@subsubsection xrc_wxtextctrl wxTextCtrl
be42eeb0
VS
1582
1583@beginTable
1584@hdr3col{property, type, description}
41e69d79 1585@row3col{value, @ref overview_xrcformat_type_text,
be42eeb0
VS
1586 Initial value of the control (default: empty).}
1587@row3col{maxlength, integer,
1588 Maximum length of the text which can be entered by user (default: unlimited).}
1589@endTable
1590
a302d595
VS
1591
1592@subsubsection xrc_wxtogglebuttton wxToggleButton
be42eeb0
VS
1593
1594@beginTable
1595@hdr3col{property, type, description}
41e69d79 1596@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1597 Label to display on the button (required).}
41e69d79 1598@row3col{checked, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1599 Should the button be checked/pressed initially (default: 0)?}
1600@endTable
a302d595
VS
1601
1602@subsubsection xrc_wxtoolbar wxToolBar
be42eeb0
VS
1603
1604@beginTable
1605@hdr3col{property, type, description}
41e69d79 1606@row3col{bitmapsize, @ref overview_xrcformat_type_size,
be42eeb0 1607 Size of toolbar bitmaps (default: not set).}
41e69d79 1608@row3col{margins, @ref overview_xrcformat_type_size,
be42eeb0
VS
1609 Margins (default: platform default).}
1610@row3col{packing, integer,
1611 Packing, see wxToolBar::SetToolPacking() (default: not set).}
1612@row3col{separation, integer,
1613 Default separator size, see wxToolBar::SetToolSeparation() (default: not set).}
41e69d79 1614@row3col{dontattachtoframe, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1615 If set to 0 and the toolbar object is child of a wxFrame,
1616 wxFrame::SetToolBar() is called; otherwise, you have to add it to a frame
1617 manually. The toolbar is attached by default, you have to set this property
1618 to 1 to disable this behaviour (default: 0).}
1619@endTable
1620
1621A toolbar can have one or more child objects of any wxControl-derived class or
1622one of two pseudo-classes: @c separator or @c tool.
1623
1624The @c separator pseudo-class is used to insert separators into the toolbar and
5852e62f
VZ
1625has neither properties nor children. Similarly, the @c space pseudo-class is
1626used for stretchable spaces (see wxToolBar::AddStretchableSpace(), new since
1627wxWidgets 2.9.1).
be42eeb0
VS
1628
1629The @c tool pseudo-class objects specify toolbar buttons and have the following
1630properties:
1631
1632@beginTable
1633@hdr3col{property, type, description}
41e69d79 1634@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1635 Tool's bitmap (required).}
41e69d79 1636@row3col{bitmap2, @ref overview_xrcformat_type_bitmap,
be42eeb0 1637 Bitmap for disabled tool (default: derived from @c bitmap).}
41e69d79 1638@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1639 Label to display on the tool (default: no label).}
41e69d79 1640@row3col{radio, @ref overview_xrcformat_type_bool,
be42eeb0 1641 Item's kind is wxITEM_RADIO (default: 0)?}
41e69d79 1642@row3col{toggle, @ref overview_xrcformat_type_bool,
be42eeb0 1643 Item's kind is wxITEM_CHECK (default: 0)?}
e2517f17 1644@row3col{dropdown, see below,
fbf23d57 1645 Item's kind is wxITEM_DROPDOWN (default: 0)? (only available since wxWidgets 2.9.0)}
41e69d79 1646@row3col{tooltip, @ref overview_xrcformat_type_text,
be42eeb0 1647 Tooltip to use for the tool (default: none).}
41e69d79 1648@row3col{longhelp, @ref overview_xrcformat_type_text,
be42eeb0 1649 Help text shown in statusbar when the mouse is on the tool (default: none).}
41e69d79 1650@row3col{disabled, @ref overview_xrcformat_type_bool,
be42eeb0
VS
1651 Is the tool initially disabled (default: 0)?}
1652@endTable
1653
e2517f17 1654The presence of a @c dropdown property indicates that the tool is of type
fbf23d57 1655wxITEM_DROPDOWN. It must be either empty or contain exactly one @ref
e2517f17
VZ
1656xrc_wxmenu child object defining the drop-down button associated menu.
1657
1658Notice that @c radio, @c toggle and @c dropdown are mutually exclusive.
be42eeb0
VS
1659
1660Children that are neither @c tool nor @c separator must be instances of classes
1661derived from wxControl and are added to the toolbar using
1662wxToolBar::AddControl().
1663
1664Example:
1665@code
1666<object class="wxToolBar">
1667 <style>wxTB_FLAT|wxTB_NODIVIDER</style>
1668 <object class="tool" name="foo">
1669 <bitmap>foo.png</bitmap>
1670 <label>Foo</label>
1671 </object>
1672 <object class="tool" name="bar">
1673 <bitmap>bar.png</bitmap>
1674 <label>Bar</label>
1675 </object>
5852e62f 1676 <object class="separator"/>
e2517f17
VZ
1677 <object class="tool" name="view_auto">
1678 <bitmap>view.png</bitmap>
1679 <label>View</label>
1680 <dropdown>
1681 <object class="wxMenu">
1682 <object class="wxMenuItem" name="view_as_text">
1683 <label>View as text</label>
1684 </object>
1685 <object class="wxMenuItem" name="view_as_hex">
1686 <label>View as binary</label>
1687 </object>
1688 </object>
1689 </dropdown>
1690 </object>
5852e62f 1691 <object class="space"/>
be42eeb0
VS
1692 <object class="wxComboBox">
1693 <content>
1694 <item>Just</item>
1695 <item>a combobox</item>
1696 <item>in the toolbar</item>
1697 </content>
1698 </object>
1699</object>
1700
1701@endcode
1702
a302d595 1703
4689441b
VZ
1704@subsubsection xrc_wxtoolbook wxToolbook
1705
1706A toolbook can have one or more child objects of the @c toolbookpage
1707pseudo-class (similarly to @ref xrc_wxnotebook "wxNotebook" and its
1708@c notebookpage) and one child object of the @ref xrc_wximagelist class.
1709@c toolbookpage objects have the following properties:
1710
1711@beginTable
1712@hdr3col{property, type, description}
1713@row3col{label, @ref overview_xrcformat_type_text,
1714 Sheet page's title (required).}
1715@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
1716 Bitmap shown alongside the label (default: none).}
1717@row3col{image, integer,
1718 The zero-based index of the image associated with the item
1719 into the image list.}
1720@row3col{selected, @ref overview_xrcformat_type_bool,
1721 Is the page selected initially (only one page can be selected; default: 0)?}
1722@endTable
1723
1724Each @c toolbookpage has exactly one non-toplevel window as its child.
1725
1726
a302d595 1727@subsubsection xrc_wxtreectrl wxTreeCtrl
be42eeb0 1728
326462ae
VZ
1729A treectrl can have one child object of the @ref xrc_wximagelist class.
1730
be42eeb0
VS
1731No additional properties.
1732
a302d595
VS
1733
1734@subsubsection xrc_wxtreebook wxTreebook
be42eeb0 1735
be42eeb0
VS
1736A treebook can have one or more child objects of the @c treebookpage
1737pseudo-class (similarly to @ref xrc_wxnotebook "wxNotebook" and its
326462ae
VZ
1738@c notebookpage) and one child object of the @ref xrc_wximagelist class.
1739@c treebookpage objects have the following properties:
be42eeb0
VS
1740
1741@beginTable
1742@hdr3col{property, type, description}
1743@row3col{depth, integer,
1744 Page's depth in the labels tree (required; see below).}
41e69d79 1745@row3col{label, @ref overview_xrcformat_type_text,
be42eeb0 1746 Sheet page's title (required).}
41e69d79 1747@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0 1748 Bitmap shown alongside the label (default: none).}
326462ae
VZ
1749@row3col{image, integer,
1750 The zero-based index of the image associated with the item
1751 into the image list.}
41e69d79 1752@row3col{selected, @ref overview_xrcformat_type_bool,
be42eeb0 1753 Is the page selected initially (only one page can be selected; default: 0)?}
2b232dec
VZ
1754@row3col{expanded, @ref overview_xrcformat_type_bool,
1755 If set to 1, the page is initially expanded. By default all pages are
1756 initially collapsed.}
be42eeb0
VS
1757@endTable
1758
1759Each @c treebookpage has exactly one non-toplevel window as its child.
1760
1761The tree of labels is not described using nested @c treebookpage objects, but
1762using the @em depth property. Toplevel pages have depth 0, their child pages
1763have depth 1 and so on. A @c treebookpage's label is inserted as child of
1764the latest preceding page with depth equal to @em depth-1. For example, this
1765XRC markup:
1766
1767@code
1768<object class="wxTreebook">
1769 ...
1770 <object class="treebookpage">
1771 <depth>0</depth>
1772 <label>Page 1</label>
1773 <object class="wxPanel">...</object>
1774 </object>
1775 <object class="treebookpage">
1776 <depth>1</depth>
1777 <label>Subpage 1A</label>
1778 <object class="wxPanel">...</object>
1779 </object>
1780 <object class="treebookpage">
1781 <depth>2</depth>
1782 <label>Subsubpage 1</label>
1783 <object class="wxPanel">...</object>
1784 </object>
1785 <object class="treebookpage">
1786 <depth>1</depth>
1787 <label>Subpage 1B</label>
1788 <object class="wxPanel">...</object>
1789 </object>
1790 <object class="treebookpage">
1791 <depth>2</depth>
1792 <label>Subsubpage 2</label>
1793 <object class="wxPanel">...</object>
1794 </object>
1795 <object class="treebookpage">
1796 <depth>0</depth>
1797 <label>Page 2</label>
1798 <object class="wxPanel">...</object>
1799 </object>
1800</object>
1801@endcode
1802
1803corresponds to the following tree of labels:
1804
1805 - Page 1
1806 - Subpage 1A
1807 - Subsubpage 1
1808 - Subpage 1B
1809 - Subsubpage 2
1810 - Page 2
1811
a302d595
VS
1812
1813@subsubsection xrc_wxwizard wxWizard
be42eeb0
VS
1814
1815@beginTable
1816@hdr3col{property, type, description}
41e69d79 1817@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0
VS
1818 Bitmap to display on the left side of the wizard (default: none).}
1819@endTable
1820
1821A wizard object can have one or more child objects of the wxWizardPage or
1822wxWizardPageSimple classes. They both support the following properties
41e69d79 1823(in addition to @ref overview_xrcformat_std_props):
be42eeb0
VS
1824
1825@beginTable
1826@hdr3col{property, type, description}
41e69d79 1827@row3col{bitmap, @ref overview_xrcformat_type_bitmap,
be42eeb0
VS
1828 Page-specific bitmap (default: none).}
1829@endTable
1830
1831wxWizardPageSimple pages are automatically chained together; wxWizardPage pages
4c51a665 1832transitions must be handled programmatically.
a302d595
VS
1833
1834
41e69d79 1835@section overview_xrcformat_sizers Sizers
a302d595
VS
1836
1837Sizers are handled slightly differently in XRC resources than they are in
1838wxWindow hierarchy. wxWindow's sizers hierarchy is parallel to the wxWindow
5fcef184 1839children hierarchy: child windows are children of their parent window and
a302d595
VS
1840the sizer (or sizers) form separate hierarchy attached to the window with
1841wxWindow::SetSizer().
1842
1843In XRC, the two hierarchies are merged together: sizers are children of other
1844sizers or windows and they can contain child window objects.
1845
1846If a sizer is child of a window object in the resource, it must be the only
1847child and it will be attached to the parent with wxWindow::SetSizer().
1848Additionally, if the window doesn't have its size explicitly set,
1849wxSizer::Fit() is used to resize the window. If the parent window is
1850toplevel window, wxSizer::SetSizeHints() is called to set its hints.
1851
1852A sizer object can have one or more child objects of one of two pseudo-classes:
41e69d79 1853@c sizeritem or @c spacer (see @ref overview_xrcformat_wxstddialogbuttonsizer for
a302d595
VS
1854an exception). The former specifies an element (another sizer or a window)
1855to include in the sizer, the latter adds empty space to the sizer.
1856
1857@c sizeritem objects have exactly one child object: either another sizer
1858object, or a window object. @c spacer objects don't have any children, but
1859they have one property:
1860
1861@beginTable
1862@hdr3col{property, type, description}
41e69d79 1863@row3col{size, @ref overview_xrcformat_type_size, Size of the empty space (required).}
a302d595
VS
1864@endTable
1865
1866Both @c sizeritem and @c spacer objects can have any of the following
1867properties:
1868
1869@beginTable
1870@hdr3col{property, type, description}
1871@row3col{option, integer,
1872 The "option" value for sizers. Used by wxBoxSizer to set proportion of
1873 the item in the growable direction (default: 0).}
41e69d79 1874@row3col{flag, @ref overview_xrcformat_type_style,
a302d595 1875 wxSizerItem flags (default: 0).}
41e69d79 1876@row3col{border, @ref overview_xrcformat_type_dimension,
a302d595
VS
1877 Size of the border around the item (directions are specified in flags)
1878 (default: 0).}
41e69d79 1879@row3col{minsize, @ref overview_xrcformat_type_size,
a302d595 1880 Minimal size of this item (default: no min size).}
41e69d79 1881@row3col{ratio, @ref overview_xrcformat_type_size,
a302d595 1882 Item ratio, see wxSizer::SetRatio() (default: no ratio).}
41e69d79 1883@row3col{cellpos, @ref overview_xrcformat_type_pos,
a302d595 1884 (wxGridBagSizer only) Position, see wxGBSizerItem::SetPos() (required). }
41e69d79 1885@row3col{cellspan, @ref overview_xrcformat_type_size,
a302d595
VS
1886 (wxGridBagSizer only) Span, see wxGBSizerItem::SetSpan() (required). }
1887@endTable
1888
1889Example of sizers XRC code:
1890@code
1891<object class="wxDialog" name="derived_dialog">
1892 <title>Derived Dialog Example</title>
1893 <centered>1</centered>
1894 <!-- this sizer is set to be this dialog's sizer: -->
1895 <object class="wxFlexGridSizer">
1896 <cols>1</cols>
1897 <rows>0</rows>
1898 <vgap>0</vgap>
1899 <hgap>0</hgap>
1900 <growablecols>0</growablecols>
1901 <growablerows>0</growablerows>
1902 <object class="sizeritem">
1903 <flag>wxALIGN_CENTRE|wxALL</flag>
1904 <border>5</border>
1905 <object class="wxButton" name="my_button">
1906 <label>My Button</label>
1907 </object>
1908 </object>
1909 <object class="sizeritem">
1910 <flag>wxALIGN_CENTRE|wxALL</flag>
1911 <border>5</border>
1912 <object class="wxBoxSizer">
1913 <orient>wxHORIZONTAL</orient>
1914 <object class="sizeritem">
1915 <flag>wxALIGN_CENTRE|wxALL</flag>
1916 <border>5</border>
1917 <object class="wxCheckBox" name="my_checkbox">
1918 <label>Enable this text control:</label>
1919 </object>
1920 </object>
1921 <object class="sizeritem">
1922 <flag>wxALIGN_CENTRE|wxALL</flag>
1923 <border>5</border>
1924 <object class="wxTextCtrl" name="my_textctrl">
1925 <size>80,-1</size>
1926 <value></value>
1927 </object>
1928 </object>
1929 </object>
1930 </object>
1931 ...
1932 </object>
1933</object>
1934@endcode
1935
1936The sizer classes that can be used are listed below, together with their
1937class-specific properties. All classes support the following properties:
1938
1939@beginTable
1940@hdr3col{property, type, description}
41e69d79 1941@row3col{minsize, @ref overview_xrcformat_type_size,
a302d595
VS
1942 Minimal size that this sizer will have, see wxSizer::SetMinSize()
1943 (default: no min size).}
1944@endTable
1945
41e69d79 1946@subsection overview_xrcformat_wxboxsizer wxBoxSizer
a302d595
VS
1947
1948@beginTable
1949@hdr3col{property, type, description}
41e69d79 1950@row3col{orient, @ref overview_xrcformat_type_style,
a302d595
VS
1951 Sizer orientation, "wxHORIZONTAL" or "wxVERTICAL" (default: wxHORIZONTAL).}
1952@endTable
1953
41e69d79 1954@subsection overview_xrcformat_wxstaticsboxizer wxStaticBoxSizer
a302d595
VS
1955
1956@beginTable
1957@hdr3col{property, type, description}
41e69d79 1958@row3col{orient, @ref overview_xrcformat_type_style,
a302d595 1959 Sizer orientation, "wxHORIZONTAL" or "wxVERTICAL" (default: wxHORIZONTAL).}
41e69d79 1960@row3col{label, @ref overview_xrcformat_type_text,
a302d595
VS
1961 Label to be used for the static box around the sizer (required).}
1962@endTable
1963
41e69d79 1964@subsection overview_xrcformat_wxgridsizer wxGridSizer
a302d595
VS
1965
1966@beginTable
1967@hdr3col{property, type, description}
0e32e86a
VS
1968@row3col{rows, integer, Number of rows in the grid (default: 0 - determine automatically).}
1969@row3col{cols, integer, Number of columns in the grid (default: 0 - determine automatically).}
a302d595
VS
1970@row3col{vgap, integer, Vertical gap between children (default: 0).}
1971@row3col{hgap, integer, Horizontal gap between children (default: 0).}
1972@endTable
1973
41e69d79 1974@subsection overview_xrcformat_wxflexgridsizer wxFlexGridSizer
a302d595
VS
1975
1976@beginTable
1977@hdr3col{property, type, description}
0e32e86a
VS
1978@row3col{rows, integer, Number of rows in the grid (default: 0 - determine automatically).}
1979@row3col{cols, integer, Number of columns in the grid (default: 0 - determine automatically).}
a302d595
VS
1980@row3col{vgap, integer, Vertical gap between children (default: 0).}
1981@row3col{hgap, integer, Horizontal gap between children (default: 0).}
1982@row3col{growablerows, comma-separated integers list,
1983 Comma-separated list of indexes of rows that are growable
1984 (default: none).}
1985@row3col{growablecols, comma-separated integers list,
1986 Comma-separated list of indexes of columns that are growable
1987 (default: none).}
1988@endTable
1989
41e69d79 1990@subsection overview_xrcformat_wxgridbagsizer wxGridBagSizer
a302d595
VS
1991
1992@beginTable
1993@hdr3col{property, type, description}
1994@row3col{vgap, integer, Vertical gap between children (default: 0).}
1995@row3col{hgap, integer, Horizontal gap between children (default: 0).}
1996@row3col{growablerows, comma-separated integers list,
1997 Comma-separated list of indexes of rows that are growable
1998 (default: none).}
1999@row3col{growablecols, comma-separated integers list,
2000 Comma-separated list of indexes of columns that are growable
2001 (default: none).}
2002@endTable
2003
41e69d79 2004@subsection overview_xrcformat_wxwrapsizer wxWrapSizer
a302d595
VS
2005
2006@beginTable
2007@hdr3col{property, type, description}
41e69d79 2008@row3col{orient, @ref overview_xrcformat_type_style,
a302d595 2009 Sizer orientation, "wxHORIZONTAL" or "wxVERTICAL" (required).}
41e69d79 2010@row3col{flag, @ref overview_xrcformat_type_style, wxWrapSizer flags (default: 0).}
a302d595
VS
2011@endTable
2012
41e69d79 2013@subsection overview_xrcformat_wxstddialogbuttonsizer wxStdDialogButtonSizer
a302d595 2014
5fcef184 2015Unlike other sizers, wxStdDialogButtonSizer has neither @c sizeritem
a302d595
VS
2016nor @c spacer children. Instead, it has one or more children of the
2017@c button pseudo-class. @c button objects have no properties and they must
2018always have exactly one child of the @c wxButton class or a class derived from
2019wxButton.
2020
2021Example:
2022@code
2023<object class="wxStdDialogButtonSizer">
2024 <object class="button">
2025 <object class="wxButton" name="wxID_OK">
2026 <label>OK</label>
2027 </object>
2028 </object>
2029 <object class="button">
2030 <object class="wxButton" name="wxID_CANCEL">
2031 <label>Cancel</label>
2032 </object>
2033 </object>
2034</object>
2035@endcode
2036
2037
2038
9d9abdbf 2039@section overview_xrcformat_other_objects Other Objects
a302d595
VS
2040
2041In addition to describing UI elements, XRC files can contain non-windows
2042objects such as bitmaps or icons. This is a concession to Windows developers
2043used to storing them in Win32 resources.
2044
2045Note that unlike Win32 resources, bitmaps included in XRC files are @em not
2046embedded in the XRC file itself. XRC file only contains a reference to another
2047file with bitmap data.
2048
41e69d79 2049@subsection overview_xrcformat_bitmap wxBitmap
a302d595 2050
1dfb6ff0 2051Bitmaps are stored in @c \<object\> element with class set to @c wxBitmap. Such
a302d595
VS
2052bitmaps can then be loaded using wxXmlResource::LoadBitmap(). The content of
2053the element is exactly same as in the case of
41e69d79 2054@ref overview_xrcformat_type_bitmap "bitmap properties", except that toplevel
1dfb6ff0 2055@c \<object\> is used.
a302d595
VS
2056
2057For example, instead of:
2058@code
2059<bitmap>mybmp.png</bitmap>
2060<bitmap stock_id="wxART_NEW"/>
2061@endcode
2062toplevel wxBitmap resources would look like:
2063@code
2064<object class="wxBitmap" name="my_bitmap">mybmp.png</object>
2065<object class="wxBitmap" name="my_new_bitmap" stock_id="wxART_NEW"/>
2066@endcode
2067
2068
41e69d79 2069@subsection overview_xrcformat_icon wxIcon
a302d595 2070
41e69d79 2071wxIcon resources are identical to @ref overview_xrcformat_bitmap "wxBitmap ones",
a302d595
VS
2072except that the class is @c wxIcon.
2073
2074
9d9abdbf 2075@section overview_xrcformat_platform Platform Specific Content
a302d595
VS
2076
2077It is possible to conditionally process parts of XRC files on some platforms
2078only and ignore them on other platforms. @em Any element in XRC file, be it
2079toplevel or arbitrarily nested one, can have the @c platform attribute. When
2080used, @c platform contains |-separated list of platforms that this element
2081should be processed on. It is filtered out and ignored on any other platforms.
2082
2083Possible elemental values are:
2084@beginDefList
2085@itemdef{ @c win, Windows }
5fcef184 2086@itemdef{ @c mac, Mac OS X (or Mac Classic in wxWidgets version supporting it) }
a302d595
VS
2087@itemdef{ @c unix, Any Unix platform @em except OS X }
2088@itemdef{ @c os2, OS/2 }
2089@endDefList
2090
2091Examples:
2092@code
2093<label platform="win">Windows</label>
2094<label platform="unix">Unix</label>
2095<label platform="mac">Mac OS X</label>
2096<help platform="mac|unix">Not a Windows machine</help>
2097@endcode
2098
2099
2100
0526c8cc
VZ
2101@section overview_xrcformat_idranges ID Ranges
2102
2103Usually you won't care what value the XRCID macro returns for the ID of an
2104object. Sometimes though it is convenient to have a range of IDs that are
2105guaranteed to be consecutive. An example of this would be connecting a group of
2106similar controls to the same event handler.
2107
2108The following XRC fragment 'declares' an ID range called @em foo and another
2109called @em bar; each with some items.
2110
2111@code
2112 <object class="wxButton" name="foo[start]">
2113 <object class="wxButton" name="foo[end]">
2114 <object class="wxButton" name="foo[2]">
2115 ...
2116 <object class="wxButton" name="bar[0]">
2117 <object class="wxButton" name="bar[2]">
2118 <object class="wxButton" name="bar[1]">
2119 ...
2120<ids-range name="foo" />
2121<ids-range name="bar" size="30" start="10000" />
2122@endcode
2123
2124For the range foo, no @em size or @em start parameters were given, so the size
2125will be calculated from the number of range items, and IDs allocated by
2126wxWindow::NewControlId (so they'll be negative). Range bar asked for a size of
212730, so this will be its minimum size: should it have more items, the range will
2128automatically expand to fit them. It specified a start ID of 10000, so
2129XRCID("bar[0]") will be 10000, XRCID("bar[1]") 10001 etc. Note that if you
2130choose to supply a start value it must be positive, and it's your
2131responsibility to avoid clashes.
2132
2133For every ID range, the first item can be referenced either as
2134<em>rangename</em>[0] or <em>rangename</em>[start]. Similarly
2135<em>rangename</em>[end] is the last item. Using [start] and [end] is more
2136descriptive in e.g. a Bind() event range or a @em for loop, and they don't have
2137to be altered whenever the number of items changes.
2138
2139Whether a range has positive or negative IDs, [start] is always a smaller
2140number than [end]; so code like this works as expected:
2141
2142@code
2143for (int n=XRCID("foo[start]"); n < XRCID("foo[end]"); ++n)
2144 ...
2145@endcode
2146
2147ID ranges can be seen in action in the <em>objref</em> dialog section of the
2148@sample{xrc}.
2149
2150@note
2151@li All the items in an ID range must be contained in the same XRC file.
2152@li You can't use an ID range in a situation where static initialisation
2153occurs; in particular, they won't work as expected in an event table. This is
2154because the event table's IDs are set to their integer values before the XRC
2155file is loaded, and aren't subsequently altered when the XRCID value changes.
2156
2157@since 2.9.2
2158
9d9abdbf 2159@section overview_xrcformat_extending Extending the XRC Format
a302d595
VS
2160
2161The XRC format is designed to be extensible and allows specifying and loading
2162custom controls. The three available mechanisms are described in the rest of
2163this section in the order of increasing complexity.
2164
41e69d79 2165@subsection overview_xrcformat_extending_subclass Subclassing
a302d595
VS
2166
2167The simplest way to add custom controls is to set the @c subclass attribute
1dfb6ff0 2168of @c \<object\> element:
a302d595
VS
2169
2170@code
2171<object name="my_value" class="wxTextCtrl" subclass="MyTextCtrl">
2172 <style>wxTE_MULTILINE</style>
2173 ...etc., setup wxTextCtrl as usual...
2174</object>
2175@endcode
2176
2177In that case, wxXmlResource will create an instance of the specified subclass
2178(@c MyTextCtrl in the example above) instead of the class (@c wxTextCtrl above)
2179when loading the resource. However, the rest of the object's loading (calling
2180its Create() method, setting its properties, loading any children etc.)
2181will proceed in @em exactly the same way as it would without @c subclass
2182attribute. In other words, this approach is only sufficient when the custom
2183class is just a small modification (e.g. overridden methods or customized
2184events handling) of an already supported classes.
2185
2186The subclass must satisfy a number of requirements:
2187
2188 -# It must be derived from the class specified in @c class attribute.
2189 -# It must be visible in wxWidget's pseudo-RTTI mechanism, i.e. there must be
2190 a DECLARE_DYNAMIC_CLASS() entry for it.
2191 -# It must support two-phase creation. In particular, this means that it has
2192 to have default constructor.
2193 -# It cannot provide custom Create() method and must be constructible using
2194 base @c class' Create() method (this is because XRC will call Create() of
2195 @c class, not @c subclass). In other words, @em creation of the control
2196 must not be customized.
2197
2198
9d9abdbf 2199@subsection overview_xrcformat_extending_unknown Unknown Objects
a302d595
VS
2200
2201A more flexible solution is to put a @em placeholder in the XRC file and
2202replace it with custom control after the resource is loaded. This is done by
2203using the @c unknown pseudo-class:
2204
2205@code
2206<object class="unknown" name="my_placeholder"/>
2207@endcode
2208
2209The placeholder is inserted as dummy wxPanel that will hold custom control in
2210it. At runtime, after the resource is loaded and a window created from it
2211(using e.g. wxXmlResource::LoadDialog()), use code must call
2212wxXmlResource::AttachUnknownControl() to insert the desired control into
2213placeholder container.
2214
2215This method makes it possible to insert controls that are not known to XRC at
2216all, but it's also impossible to configure the control in XRC description in
2217any way. The only properties that can be specified are
41e69d79 2218the @ref overview_xrcformat_std_props "standard window properties".
a302d595
VS
2219
2220@note @c unknown class cannot be combined with @c subclass attribute,
2221 they are mutually exclusive.
2222
2223
9d9abdbf 2224@subsection overview_xrcformat_extending_custom Adding Custom Classes
a302d595
VS
2225
2226Finally, XRC allows adding completely new classes in addition to the ones
2227listed in this document. A class for which wxXmlResourceHandler is implemented
2228can be used as first-class object in XRC simply by passing class name as the
2229value of @c class attribute:
2230
2231@code
2232<object name="my_ctrl" class="MyWidget">
2233 <my_prop>foo</my_prop>
2234 ...etc., whatever MyWidget handler accepts...
2235</object>
2236@endcode
2237
2238The only requirements on the class are that
2239 -# the class must derive from wxObject
2240 -# it must support wxWidget's pseudo-RTTI mechanism
2241
1dfb6ff0 2242Child elements of @c \<object\> are handled by the custom handler and there are
a302d595
VS
2243no limitations on them imposed by XRC format.
2244
2245This is the only mechanism that works for toplevel objects -- custom controls
5fcef184 2246are accessible using the type-unsafe wxXmlResource::LoadObject() method.
a302d595
VS
2247
2248
2249
9d9abdbf 2250@section overview_xrcformat_packed Packed XRC Files
a302d595
VS
2251
2252In addition to plain XRC files, wxXmlResource supports (if wxFileSystem support
2253is compiled in) compressed XRC resources. Compressed resources have either
2254.zip or .xrs extension and are simply ZIP files that contain arbitrary
2255number of XRC files and their dependencies (bitmaps, icons etc.).
2256
2257
2258
9d9abdbf 2259@section overview_xrcformat_oldversions Older Format Versions
a302d595
VS
2260
2261This section describes differences in older revisions of XRC format (i.e.
1dfb6ff0 2262files with older values of @c version attribute of @c \<resource\>).
a302d595
VS
2263
2264
9d9abdbf 2265@subsection overview_xrcformat_pre_v2530 Versions Before 2.5.3.0
a302d595
VS
2266
2267Version 2.5.3.0 introduced C-like handling of "\\" in text. In older versions,
2268"\n", "\t" and "\r" escape sequences were replaced with respective characters
2269in the same matter it's done in C, but "\\" was left intact instead of being
2270replaced with single "\", as one would expect. Starting with 2.5.3.0, all of
2271them are handled in C-like manner.
2272
2273
9d9abdbf 2274@subsection overview_xrcformat_pre_v2301 Versions Before 2.3.0.1
a302d595
VS
2275
2276Prior to version 2.3.0.1, "$" was used for accelerators instead of "_"
2277or "&amp;". For example,
2278@code
2279<label>$File</label>
2280@endcode
2281was used in place of current version's
2282@code
2283<label>_File</label>
2284@endcode
2285(or "&amp;File").
2286
2287*/