wxXmlResource

See external documentation: wxXmlResource.

See external documentation: wxXmlResource.

Functions


new() -> wxXmlResource()

Equivalent to new([]).

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

See external documentation.

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

See external documentation.

attachUnknownControl(This, Name, Control) -> boolean()

attachUnknownControl(This, Name, Control, Options::[Option]) -> boolean()

See external documentation.

clearHandlers(This) -> ok

See external documentation.

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

  • This = wxXmlResource()
  • Major = integer()
  • Minor = integer()
  • Release = integer()
  • Revision = integer()

See external documentation.

get() -> wxXmlResource()

See external documentation.

getFlags(This) -> integer()

See external documentation.

getVersion(This) -> integer()

See external documentation.

getXRCID(Str_id) -> integer()

Equivalent to getXRCID(Str_id, []).

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

See external documentation.

initAllHandlers(This) -> ok

See external documentation.

load(This, Filemask) -> boolean()

See external documentation.

loadBitmap(This, Name) -> wxBitmap:wxBitmap()

See external documentation.

loadDialog(This, Parent, Name) -> wxDialog:wxDialog()

See external documentation.

loadDialog(This, Dlg, Parent, Name) -> boolean()

See external documentation.

loadFrame(This, Parent, Name) -> wxFrame:wxFrame()

See external documentation.

loadFrame(This, Frame, Parent, Name) -> boolean()

See external documentation.

loadIcon(This, Name) -> wxIcon:wxIcon()

See external documentation.

loadMenu(This, Name) -> wxMenu:wxMenu()

See external documentation.

loadMenuBar(This, Name) -> wxMenuBar:wxMenuBar()

See external documentation.

loadMenuBar(This, Parent, Name) -> wxMenuBar:wxMenuBar()

See external documentation.

loadPanel(This, Parent, Name) -> wxPanel:wxPanel()

See external documentation.

loadPanel(This, Panel, Parent, Name) -> boolean()

See external documentation.

loadToolBar(This, Parent, Name) -> wxToolBar:wxToolBar()

See external documentation.

set(Res) -> wxXmlResource()

See external documentation.

setFlags(This, Flags) -> ok

See external documentation.

unload(This, Filename) -> boolean()

See external documentation.

xrcctrl(Window, Name, Type) -> wx:wx_object()

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