wxXmlResource
(wx)See external documentation: wxXmlResource.
See external documentation:
Functions
new() -> wxXmlResource()
Equivalent to new([]).
new(Options::[Option]) -> wxXmlResource()
Option = {flags, integer()} | {domain, unicode:chardata()}
See
new(Filemask, Options::[Option]) -> wxXmlResource()
Filemask = unicode:chardata()
Option = {flags, integer()} | {domain, unicode:chardata()}
See
attachUnknownControl(This, Name, Control) -> boolean()
This = wxXmlResource()
Name = unicode:chardata()
Control = wxWindow:wxWindow()
Equivalent to attachUnknownControl(This, Name, Control, []).
attachUnknownControl(This, Name, Control, Options::[Option]) -> boolean()
This = wxXmlResource()
Name = unicode:chardata()
Control = wxWindow:wxWindow()
Option = {parent, wxWindow:wxWindow()}
See
compareVersion(This, Major, Minor, Release, Revision) -> integer()
This = wxXmlResource()
Major = integer()
Minor = integer()
Release = integer()
Revision = integer()
See
get() -> wxXmlResource()
See
getXRCID(Str_id, Options::[Option]) -> integer()
Str_id = [unicode:chardata()]
Option = {value_if_not_found, integer()}
See
load(This, Filemask) -> boolean()
This = wxXmlResource()
Filemask = unicode:chardata()
See
loadBitmap(This, Name) -> wxBitmap:wxBitmap()
This = wxXmlResource()
Name = unicode:chardata()
See
loadDialog(This, Parent, Name) -> wxDialog:wxDialog()
This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadDialog(This, Dlg, Parent, Name) -> boolean()
This = wxXmlResource()
Dlg = wxDialog:wxDialog()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadFrame(This, Parent, Name) -> wxFrame:wxFrame()
This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadFrame(This, Frame, Parent, Name) -> boolean()
This = wxXmlResource()
Frame = wxFrame:wxFrame()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadIcon(This, Name) -> wxIcon:wxIcon()
This = wxXmlResource()
Name = unicode:chardata()
See
loadMenu(This, Name) -> wxMenu:wxMenu()
This = wxXmlResource()
Name = unicode:chardata()
See
loadMenuBar(This, Name) -> wxMenuBar:wxMenuBar()
This = wxXmlResource()
Name = unicode:chardata()
See
loadMenuBar(This, Parent, Name) -> wxMenuBar:wxMenuBar()
This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadPanel(This, Parent, Name) -> wxPanel:wxPanel()
This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadPanel(This, Panel, Parent, Name) -> boolean()
This = wxXmlResource()
Panel = wxPanel:wxPanel()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
loadToolBar(This, Parent, Name) -> wxToolBar:wxToolBar()
This = wxXmlResource()
Parent = wxWindow:wxWindow()
Name = unicode:chardata()
See
unload(This, Filename) -> boolean()
This = wxXmlResource()
Filename = unicode:chardata()
See
xrcctrl(Window, Name, Type) -> wx:wx_object()
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