Scroll to navigation

wxXmlResource(3erl) Erlang Module Definition wxXmlResource(3erl)

NAME

wxXmlResource - See external documentation: wxXmlResource.

DESCRIPTION

See external documentation: wxXmlResource.

DATA TYPES

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, unicode:chardata()}

See external documentation.

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

Types:

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

See external documentation.

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

Types:

This = wxXmlResource()
Name = unicode:chardata()
Control = wxWindow:wxWindow()

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

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

Types:

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

See external documentation.

clearHandlers(This) -> ok

Types:

This = wxXmlResource()

See external documentation.

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

Types:

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

See external documentation.

get() -> wxXmlResource()

See external documentation.

getFlags(This) -> integer()

Types:

This = wxXmlResource()

See external documentation.

getVersion(This) -> integer()

Types:

This = wxXmlResource()

See external documentation.

getXRCID(Str_id) -> integer()

Types:

Str_id = [unicode:chardata()]

Equivalent to getXRCID(Str_id, []).

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

Types:

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

See external documentation.

initAllHandlers(This) -> ok

Types:

This = wxXmlResource()

See external documentation.

load(This, Filemask) -> boolean()

Types:

This = wxXmlResource()
Filemask = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Name = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()

See external documentation.

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

Types:

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

See external documentation.

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

Types:

This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()

See external documentation.

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

Types:

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

See external documentation.

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

Types:

This = wxXmlResource()
Name = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Name = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Name = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()

See external documentation.

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

Types:

This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()

See external documentation.

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

Types:

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

See external documentation.

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

Types:

This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()

See external documentation.

set(Res) -> wxXmlResource()

Types:

Res = wxXmlResource()

See external documentation.

setFlags(This, Flags) -> ok

Types:

This = wxXmlResource()
Flags = integer()

See external documentation.

unload(This, Filename) -> boolean()

Types:

This = wxXmlResource()
Filename = unicode:chardata()

See external documentation.

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

Types:

Window = wxWindow:wxWindow()
Name = string()
Type = atom()

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

<>

wx 1.9.2