Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 1.2


Expand All
Contract All

Table of Contents

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(Option::[Option]) -> wxXmlResource()

Types:

Option = {flags, integer()} | {domain, chardata() (see module unicode)}

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

Types:

Filemask = chardata() (see module unicode)
Option = {flags, integer()} | {domain, chardata() (see module unicode)}

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

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)
Control = wxWindow() (see module wxWindow)

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

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)
Control = wxWindow() (see module wxWindow)
Option = {parent, wxWindow() (see module wxWindow)}

clearHandlers(This) -> ok

Types:

This = wxXmlResource()

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

Types:

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

get() -> wxXmlResource()

getFlags(This) -> integer()

Types:

This = wxXmlResource()

getVersion(This) -> integer()

Types:

This = wxXmlResource()

getXRCID(Str_id) -> integer()

Types:

Str_id = [chardata() (see module unicode)]

Equivalent to getXRCID(Str_id, []).

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

Types:

Str_id = [chardata() (see module unicode)]
Option = {value_if_not_found, integer()}

initAllHandlers(This) -> ok

Types:

This = wxXmlResource()

load(This, Filemask) -> boolean()

Types:

This = wxXmlResource()
Filemask = chardata() (see module unicode)

loadBitmap(This, Name) -> wxBitmap() (see module wxBitmap)

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)

loadDialog(This, Parent, Name) -> wxDialog() (see module wxDialog)

Types:

This = wxXmlResource()
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

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

Types:

This = wxXmlResource()
Dlg = wxDialog() (see module wxDialog)
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

loadFrame(This, Parent, Name) -> wxFrame() (see module wxFrame)

Types:

This = wxXmlResource()
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

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

Types:

This = wxXmlResource()
Frame = wxFrame() (see module wxFrame)
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

loadIcon(This, Name) -> wxIcon() (see module wxIcon)

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)

loadMenu(This, Name) -> wxMenu() (see module wxMenu)

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)

loadMenuBar(This, Name) -> wxMenuBar() (see module wxMenuBar)

Types:

This = wxXmlResource()
Name = chardata() (see module unicode)

loadMenuBar(This, Parent, Name) -> wxMenuBar() (see module wxMenuBar)

Types:

This = wxXmlResource()
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

loadPanel(This, Parent, Name) -> wxPanel() (see module wxPanel)

Types:

This = wxXmlResource()
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

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

Types:

This = wxXmlResource()
Panel = wxPanel() (see module wxPanel)
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

loadToolBar(This, Parent, Name) -> wxToolBar() (see module wxToolBar)

Types:

This = wxXmlResource()
Parent = wxWindow() (see module wxWindow)
Name = chardata() (see module unicode)

set(Res) -> wxXmlResource()

Types:

Res = wxXmlResource()

setFlags(This, Flags) -> ok

Types:

This = wxXmlResource()
Flags = integer()

unload(This, Filename) -> boolean()

Types:

This = wxXmlResource()
Filename = chardata() (see module unicode)

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