xrv XRCvalidator grammar
xrv 0.5.3
xrc 2.3.0.1-2.5.3.0


 data types
tBitmap
first tries to fetch a bitmap via wxArtProvider, using the 2 attributes; if that fails, loads the bitmap file pointed to by the URL in the element's text contents
@stock_id
tID 
 
@stock_client
tID 
 
string
tURL 
 
tBoolean
either 0 or 1
tChoice
the value must be one out of a fixed list
tColor
#RRGGBB format or symbolic color name
tCSV
comma separated values
tDimension
a distance, can be like tInteger with optional 'd' suffix (dialog units instead of pixels)
tFloat
floating point value, can only contain digits, one dot and optional '-' prefix
tFont
property elements, defining a font
size
tUInteger 
 
style
tChoice 
normal 
weight
tChoice 
normal 
family
tChoice 
roman 
underlined
tBoolean 
face
tCSV 
 
encoding
tString 
 
sysfont
tString 
 
relativesize
tFloat 
 
tHTML
contains the HTML code as a string, with escaped angle brackets (< >)
tID
eg. wxART_FILE_OPEN, wxART_MENU
tInteger
can only contain digits and an optional '-' prefix. Or, of course, a constant like wxSL_DEFAULT_MIN
tList
one or more <item> elements (each with an optional 'checked' attribute)
item
tString 
 
@checked
tBoolean 
tSize
two integers, separated by a comma; optional 'd' suffix (dialog units instead of pixels)
tString
any string
tStyle
combination of wx style flags, separated with '|'
tUInteger
unsigned integer, can only contain digits
tURL
pointer to a file
 common properties
pos
tSize 
-1,-1 
size
tSize 
-1,-1 
style
tStyle 
 
exstyle
tStyle 
 
bg
tColor 
 
fg
tColor 
 
enabled
tBoolean 
focused
tBoolean 
hidden
tBoolean 
tooltip
tString 
 
font
tFont 
 
 control classes
 wxBitmap
 wxIcon
 wxBitmapButton
 
 
default
tBoolean 
bitmap
tBitmap 
 
selected
tBitmap 
 
focus
tBitmap 
 
disabled
tBitmap 
 
 wxButton
 
 
label
tString 
 
default
tBoolean 
 wxCalendarCtrl
 wxCheckBox
 
 
label
tString 
 
checked
tBoolean 
 wxCheckList
deprecated - use wxCheckListBox instead
 
 
content
tList 
 
 wxCheckListBox
 wxChoice
 
 
selection
tInteger 
-1 
content
tList 
 
 wxComboBox
 
 
selection
tInteger 
-1 
content
tList 
 
value
tString 
 
 wxDatePickerCtrl
 
wxDP_DEFAULT | wxDP_SHOWCENTURY 
 wxGauge
 
 
range
tInteger 
wxGAUGE_DEFAULT_RANGE 
value
tInteger 
 
shadow
tDimension 
 
bezel
tDimension 
 
 wxGenericDirCtrl
 
 
defaultfolder
tString 
 
filter
tString 
 
defaultfilter
tInteger 
 
 wxListBox
 
 
selection
tInteger 
 
content
tList 
 
 wxListCtrl
 wxRadioButton
 
 
label
tString 
 
value
tBoolean 
 wxRadioBox
 
 
label
tString 
 
dimension
tInteger 
selection
tInteger 
 
content
tList 
 
 wxScrollBar
 
 
value
tInteger 
thumbsize
tInteger 
range
tInteger 
10 
pagesize
tInteger 
 wxSlider
 
 
value
tInteger 
wxSL_DEFAULT_VALUE 
min
tInteger 
wxSL_DEFAULT_MIN 
max
tInteger 
wxSL_DEFAULT_MAX 
tickfreq
tInteger 
pagesize
tInteger 
 
linesize
tInteger 
 
thumb
tInteger 
 
tick
tInteger 
 
selmin
tInteger 
 
selmax
tInteger 
 
 wxSpinButton
 
wxSP_VERTICAL | wxSP_ARROW_KEYS 
value
tInteger 
wxSP_DEFAULT_VALUE 
min
tInteger 
wxSP_DEFAULT_MIN 
max
tInteger 
wxSP_DEFAULT_MAX 
 wxSpinCtrl
 
wxSP_ARROW_KEYS 
value
tInteger 
wxSP_DEFAULT_VALUE 
min
tInteger 
wxSP_DEFAULT_MIN 
max
tInteger 
wxSP_DEFAULT_MAX 
 wxStaticBitmap
 wxStaticBox
 wxStaticLine
 wxStaticText
 wxTextCtrl
 wxToggleButton
 
 
label
tString 
 
checked
tBoolean 
 
 wxTreeCtrl
 window classes
 wxDialog
 
wxDEFAULT_DIALOG_STYLE 
title
tString 
 
icon
tBitmap 
 
centered
tBoolean 
 
 
 
 
 wxFrame
 
wxDEFAULT_FRAME_STYLE 
title
tString 
 
icon
tBitmap 
 
centered
tBoolean 
 
 
 
 
 
 
 wxMDIParentFrame
 
wxDEFAULT_FRAME_STYLE | wxVSCROLL | wxHSCROLL 
title
tString 
 
icon
tBitmap 
 
centered
tBoolean 
 wxMDIChildFrame
pos
tSize 
-1,-1 
size
tSize 
-1,-1 
style
tStyle 
wxDEFAULT_FRAME_STYLE 
font
tFont 
 
title
tString 
 
icon
tBitmap 
 
centered
tBoolean 
 
 
 
 
 
 
 
 
 
 
 
 
 wxPanel
 
wxTAB_TRAVERSAL 
 
 
 
 
 wxScrolledWindow
 wxSplitterWindow
 
wxSP_3D 
sashpos
tInteger 
minsize
tInteger 
-1 
orientation
tChoice 
horizontal 
 
 
 wxHtmlWindow
 
wxHW_SCROLLBAR_AUTO 
borders
tDimension 
 
url
tURL 
 
htmlcode
tHTML 
 
 wxChoicebook
 
 
choicebookpage
label
tString 
 
selected
tBoolean 
bitmap
tBitmap 
 
 
 
 
 
 wxListbook
 
 
listbookpage
label
tString 
 
selected
tBoolean 
bitmap
tBitmap 
 
 
 
 
 
 wxNotebook
 
 
notebookpage
label
tString 
 
selected
tBoolean 
bitmap
tBitmap 
 
 
 
 
 
 wxTreebook
 
 
treebookpage
label
tString 
 
selected
tBoolean 
bitmap
tBitmap 
 
depth
tInteger 
 
 
 
 
 wxWizard
 
 
title
tString 
 
 wxWizardPage
abstract class, must be subclassed
 
 
 
 
 
 
 wxWizardPageSimple
 sizer classes
 wxBoxSizer
orient
tChoice 
wxHORIZONTAL 
sizeritem
option
tInteger 
 
flag
tStyle 
 
border
tDimension 
 
minsize
tSize 
 
ratio
tSize 
 
cellpos
tInteger 
 
cellspan
tInteger 
 
 
 
 
 
 
 
 
 
spacer
 wxStaticBoxSizer
orient
tChoice 
wxHORIZONTAL 
label
tString 
 
sizeritem
spacer
 wxGridSizer
rows
tInteger 
 
cols
tInteger 
 
vgap
tDimension 
 
hgap
tDimension 
 
sizeritem
spacer
 wxFlexGridSizer
orient
tChoice 
wxBOTH 
rows
tInteger 
 
cols
tInteger 
 
vgap
tDimension 
 
hgap
tDimension 
 
growablerows
tCSV 
 
growablecols
tCSV 
 
sizeritem
spacer
 wxGridBagSizer
orient
tChoice 
wxBOTH 
vgap
tDimension 
 
hgap
tDimension 
 
growablerows
tCSV 
 
growablecols
tCSV 
 
sizeritem
spacer
 wxStdDialogButtonSizer
orient
tChoice 
wxHORIZONTAL 
button
option
tInteger 
 
flag
tStyle 
 
border
tDimension 
 
minsize
tSize 
 
 wxButton
 bar classes
 wxMenuBar
 
 
 wxMenu
 
 
label
tString 
 
help
tString 
 
 wxMenuItem
 
 
label
tString 
 
help
tString 
 
accel
tString 
 
enabled
tBoolean 
checkable
tBoolean 
 
checked
tBoolean 
 
bitmap
tBitmap 
 
 wxMenu
break
separator
 wxToolBar
 
wxNO_BORDER | wxTB_HORIZONTAL 
bitmapsize
tSize 
-1,-1 
margins
tSize 
-1,-1 
packing
tInteger 
-1 
separation
tInteger 
-1 
dontattachtoframe
tBoolean 
 
tool
bitmap
tBitmap 
 
bitmap2
tBitmap 
wxNullBitmap 
toggle
tBoolean 
radio
tBoolean 
label
tString 
 
tooltip
tString 
 
longhelp
tString 
 
pos
tSize 
-1,-1 
separator
 
 
 wxStatusBar
style
tStyle 
 
fields
tInteger 
 
widths
tCSV 
 
styles
tCSV 
 

 all classes