wxErlang

Reference Manual

Version 1.9.1

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.

Equivalent to new([]).

Types

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

Types

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

Types

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

Types

Str_id = [unicode:chardata()]

Equivalent to getXRCID(Str_id, []).

Types

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

Types

Flags = integer()

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}]),

Destroys this object, do not use object again