See external documentation: wxXmlResource.
Equivalent to new([]).
new(Options::[Option]) -> wxXmlResource()
Types:
Option = {flags, integer()} | {domain, string()}
new(Filemask::string(), Options::[Option]) -> wxXmlResource()
Types:
Option = {flags, integer()} | {domain, string()}
Equivalent to attachUnknownControl(This, Name, Control, []).
Types:
Option = {parent, wxWindow() (see module wxWindow)}
clearHandlers(This::wxXmlResource()) -> ok
getFlags(This::wxXmlResource()) -> integer()
getVersion(This::wxXmlResource()) -> integer()
getXRCID(Str_id::[string()]) -> integer()
Equivalent to getXRCID(Str_id, []).
getXRCID(Str_id::[string()], Options::[Option]) -> integer()
Types:
Option = {value_if_not_found, integer()}
initAllHandlers(This::wxXmlResource()) -> ok
load(This::wxXmlResource(), Filemask::string()) -> bool()
loadBitmap(This::wxXmlResource(), Name::string()) -> wxBitmap() (see module wxBitmap)
loadIcon(This::wxXmlResource(), Name::string()) -> wxIcon() (see module wxIcon)
loadMenu(This::wxXmlResource(), Name::string()) -> wxMenu() (see module wxMenu)
loadMenuBar(This::wxXmlResource(), Name::string()) -> wxMenuBar() (see module wxMenuBar)
set(Res::wxXmlResource()) -> wxXmlResource()
setFlags(This::wxXmlResource(), Flags::integer()) -> ok
unload(This::wxXmlResource(), Filename::string()) -> bool()
Looks up a control with Name in a window created with XML
resources. You can use it to set/get values from controls.
The object is type casted to Type.
Example:
Xrc = wxXmlResource:get(),
Dlg = wxDialog:new(),
true = wxXmlResource:loadDialog(Xrc, Dlg, Frame, "controls_dialog"),
LCtrl = xrcctrl(Dlg, "controls_listctrl", wxListCtrl),
wxListCtrl:insertColumn(LCtrl, 0, "Name", [{width, 200}]),
destroy(This::wxXmlResource()) -> ok