wxXmlResource
MODULE
MODULE SUMMARY
DESCRIPTION
See external documentation: wxXmlResource.
DATA TYPES
EXPORTS
new() -> wxXmlResource()
Equivalent to new([]).
new(Options::[Option]) -> wxXmlResource()
Types:
new(Filemask, Options::[Option]) -> wxXmlResource()
attachUnknownControl(This, Name, Control) -> boolean()
Equivalent to attachUnknownControl(This, Name, Control, []).
attachUnknownControl(This, Name, Control, Options::[Option]) -> boolean()
Types:
Types:
compareVersion(This, Major, Minor, Release, Revision) -> integer()
Types:
get() -> wxXmlResource()
Types:
Types:
Types:
Equivalent to getXRCID(Str_id, []).
getXRCID(Str_id, Options::[Option]) -> integer()
Types:
load(This, Filemask) -> boolean()
loadBitmap(This, Name) -> wxBitmap:wxBitmap()
loadDialog(This, Parent, Name) -> wxDialog:wxDialog()
loadDialog(This, Dlg, Parent, Name) -> boolean()
Types:
loadFrame(This, Parent, Name) -> wxFrame:wxFrame()
loadFrame(This, Frame, Parent, Name) -> boolean()
Types:
loadIcon(This, Name) -> wxIcon:wxIcon()
loadMenu(This, Name) -> wxMenu:wxMenu()
loadMenuBar(This, Name) -> wxMenuBar:wxMenuBar()
loadMenuBar(This, Parent, Name) -> wxMenuBar:wxMenuBar()
loadPanel(This, Parent, Name) -> wxPanel:wxPanel()
loadPanel(This, Panel, Parent, Name) -> boolean()
Types:
loadToolBar(This, Parent, Name) -> wxToolBar:wxToolBar()
set(Res) -> wxXmlResource()
Types:
unload(This, Filename) -> boolean()
xrcctrl(Window, Name, Type) -> wx:wx_object()
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