h1(#wxxmlresource). Wx::XmlResource
This is the main class for interacting with the XML-based resource system.
The class holds XML resources from one or more .xml files, binary files or zip archive files.
See "XML-based resource system overview":xrcoverview.html for details.
h2. Derived from
"Object":object.html
h2. Constants
Wx::XRC_USE_LOCALE = 1
Wx::XRC_NO_SUBCLASSING = 2
Wx::XRC_NO_RELOADING = 4
h3(#XmlResource_new). XmlResource.new
*XmlResource.new*(%(arg-type)String% filemask, %(arg-type)Integer% flags = XRC_USE_LOCALE)
Constructor.
* _filemask_ The XRC file, archive file, or wildcard specification that will be used to
load all resource files inside a zip archive.
* _flags_ XRC_USE_LOCALE: translatable strings will be translated via _().
XRC_NO_SUBCLASSING: subclass property of object nodes will be ignored
(useful for previews in XRC editors).
*XmlResource.new*(%(arg-type)Integer% flags = XRC_USE_LOCALE)
The flags in Wx::XmlResource are not useful in ruby. All XmlResources
created will have the optimal flags.
* @Wx::XRC_USE_LOCALE@: translatable strings will be translated via _().
* @Wx::XRC_NO_SUBCLASSING@: subclass property of object nodes will be ignored (useful for previews in XRC editors).
* @Wx::XRC_NO_RELOADING@ will prevent the XRC files from being reloaded from disk in case they have been modified there since being last loaded (may slightly speed up loading them).
h3(#XmlResource_get). XmlResource#get
"XmlResource":xmlresource.html *XmlResource.get*()
Class method to get the global XmlResource object.
h3(#XmlResource_set). XmlResource#set
"XmlResource":xmlresource.html *XmlResource.set*(%(arg-type)"XmlResource":xmlresource.html% res)
Class method to set the global resources object. Returns the pointer to
the previous one, or nil if there was not one.
h3(#XmlResource_attachunknowncontrol). XmlResource#attach_unknown_control
Boolean *attach_unknown_control*(%(arg-type)String% name, %(arg-type)"Window":window.html% control,
%(arg-type)"Window":window.html% parent = nil)
Attaches an unknown control to the given panel/window/dialog.
Unknown controls are used in conjunction with @