new() -> wxXmlResource()
Equivalent to new([]).
See external documentation: wxXmlResource.
Equivalent to new([]).
Equivalent to attachUnknownControl(This, Name, Control, []).
Equivalent to getXRCID(Str_id, []).
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}]),