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

wxErlang
Reference Manual
Version 0.98.7


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

Types:

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

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

Types:

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

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

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

Types:

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

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

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

get() -> wxXmlResource()

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

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

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

Equivalent to getXRCID(Str_id, []).

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

Types:

Option = {value_if_not_found, integer()}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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