wxErlang

Reference Manual

Version 1.8.2

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

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

Types

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

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

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

Types

Option = {parent, wxWindow:wxWindow()}

clearHandlers(This) -> ok

Types

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

Types

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

get() -> wxXmlResource()

getFlags(This) -> integer()

Types

getVersion(This) -> integer()

Types

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()}

initAllHandlers(This) -> ok

Types

load(This, Filemask) -> boolean()

Types

Filemask = unicode:chardata()

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

Types

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

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

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

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

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

Types

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

Types

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

Types

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

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

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

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

set(Res) -> wxXmlResource()

Types

setFlags(This, Flags) -> ok

Types

Flags = integer()

unload(This, Filename) -> boolean()

Types

Filename = unicode:chardata()

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

Types

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