# wxXmlResource

### MODULE

wxXmlResource

### MODULE SUMMARY

See external documentation: wxXmlResource.

### DESCRIPTION

See external documentation: wxXmlResource.

### DATA TYPES

wxXmlResource()
  An object reference, The representation is internal and can be changed without notice. It can't be used for comparsion stored on disc or distributed for use on other nodes.

### EXPORTS

new() -> wxXmlResource()

Equivalent to new([]).

new(Options::[Option]) -> wxXmlResource()

Types:

Option = {flags, integer()} | {domain, string()}

See external documentation.

new(Filemask::string(), Options::[Option]) -> wxXmlResource()

Types:

Option = {flags, integer()} | {domain, string()}

See external documentation.

attachUnknownControl(This::wxXmlResource(), Name::string(), Control::wxWindow() (see module wxWindow)) -> bool()

Equivalent to attachUnknownControl(This, Name, Control, []).

attachUnknownControl(This::wxXmlResource(), Name::string(), Control::wxWindow() (see module wxWindow), Options::[Option]) -> bool()

Types:

Option = {parent, wxWindow() (see module wxWindow)}

See external documentation.

clearHandlers(This::wxXmlResource()) -> ok

See external documentation.

compareVersion(This::wxXmlResource(), Major::integer(), Minor::integer(), Release::integer(), Revision::integer()) -> integer()

See external documentation.

get() -> wxXmlResource()

See external documentation.

getFlags(This::wxXmlResource()) -> integer()

See external documentation.

getVersion(This::wxXmlResource()) -> integer()

See external documentation.

getXRCID(Str_id::[string()]) -> integer()

Equivalent to getXRCID(Str_id, []).

getXRCID(Str_id::[string()], Options::[Option]) -> integer()

Types:

Option = {value_if_not_found, integer()}

See external documentation.

initAllHandlers(This::wxXmlResource()) -> ok

See external documentation.

load(This::wxXmlResource(), Filemask::string()) -> bool()

See external documentation.

loadBitmap(This::wxXmlResource(), Name::string()) -> wxBitmap() (see module wxBitmap)

See external documentation.

loadDialog(This::wxXmlResource(), Parent::wxWindow() (see module wxWindow), Name::string()) -> wxDialog() (see module wxDialog)

See external documentation.

loadDialog(This::wxXmlResource(), Dlg::wxDialog() (see module wxDialog), Parent::wxWindow() (see module wxWindow), Name::string()) -> bool()

See external documentation.

loadFrame(This::wxXmlResource(), Parent::wxWindow() (see module wxWindow), Name::string()) -> wxFrame() (see module wxFrame)

See external documentation.

loadFrame(This::wxXmlResource(), Frame::wxFrame() (see module wxFrame), Parent::wxWindow() (see module wxWindow), Name::string()) -> bool()

See external documentation.

loadIcon(This::wxXmlResource(), Name::string()) -> wxIcon() (see module wxIcon)

See external documentation.

loadMenu(This::wxXmlResource(), Name::string()) -> wxMenu() (see module wxMenu)

See external documentation.

loadMenuBar(This::wxXmlResource(), Name::string()) -> wxMenuBar() (see module wxMenuBar)

See external documentation.

loadMenuBar(This::wxXmlResource(), Parent::wxWindow() (see module wxWindow), Name::string()) -> wxMenuBar() (see module wxMenuBar)

See external documentation.

loadPanel(This::wxXmlResource(), Parent::wxWindow() (see module wxWindow), Name::string()) -> wxPanel() (see module wxPanel)

See external documentation.

loadPanel(This::wxXmlResource(), Panel::wxPanel() (see module wxPanel), Parent::wxWindow() (see module wxWindow), Name::string()) -> bool()

See external documentation.

loadToolBar(This::wxXmlResource(), Parent::wxWindow() (see module wxWindow), Name::string()) -> wxToolBar() (see module wxToolBar)

See external documentation.

set(Res::wxXmlResource()) -> wxXmlResource()

See external documentation.

setFlags(This::wxXmlResource(), Flags::integer()) -> ok

See external documentation.

unload(This::wxXmlResource(), Filename::string()) -> bool()

See external documentation.

xrcctrl(Window::wxWindow() (see module wxWindow), Name::string(), Type::atom()) -> wxObject() (see module wx)

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

Destroys this object, do not use object again

### AUTHORS

- support@erlang.ericsson.se

wx 0.98.3
Copyright © 1991-2009 Ericsson AB