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

wxTextCtrl

MODULE

wxTextCtrl

MODULE SUMMARY

See external documentation: wxTextCtrl.

DESCRIPTION

See external documentation: wxTextCtrl.

This class is derived (and can use functions) from:
wxControl
wxWindow
wxEvtHandler

DATA TYPES

wxTextCtrl()

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

new(Parent::wxWindow() (see module wxWindow), Id::integer()) -> wxTextCtrl()

Equivalent to new(Parent, Id, []).

new(Parent::wxWindow() (see module wxWindow), Id::integer(), Options::[Option]) -> wxTextCtrl()

Types:

Option = {value, string()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)}

appendText(This::wxTextCtrl(), Text::string()) -> ok

canCopy(This::wxTextCtrl()) -> bool()

canCut(This::wxTextCtrl()) -> bool()

canPaste(This::wxTextCtrl()) -> bool()

canRedo(This::wxTextCtrl()) -> bool()

canUndo(This::wxTextCtrl()) -> bool()

clear(This::wxTextCtrl()) -> ok

copy(This::wxTextCtrl()) -> ok

create(This::wxTextCtrl(), Parent::wxWindow() (see module wxWindow), Id::integer()) -> bool()

create(This::wxTextCtrl(), Parent::wxWindow() (see module wxWindow), Id::integer(), Options::[Option]) -> bool()

Types:

Option = {value, string()} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx() (see module wx)}

cut(This::wxTextCtrl()) -> ok

discardEdits(This::wxTextCtrl()) -> ok

emulateKeyPress(This::wxTextCtrl(), Event::wxKeyEvent() (see module wxKeyEvent)) -> bool()

getDefaultStyle(This::wxTextCtrl()) -> wxTextAttr() (see module wxTextAttr)

getInsertionPoint(This::wxTextCtrl()) -> integer()

getLastPosition(This::wxTextCtrl()) -> integer()

getLineLength(This::wxTextCtrl(), LineNo::integer()) -> integer()

getLineText(This::wxTextCtrl(), LineNo::integer()) -> string()

getNumberOfLines(This::wxTextCtrl()) -> integer()

getRange(This::wxTextCtrl(), From::integer(), To::integer()) -> string()

getSelection(This::wxTextCtrl()) -> {From::integer(), To::integer()}

getStringSelection(This::wxTextCtrl()) -> string()

getStyle(This::wxTextCtrl(), Position::integer(), Style::wxTextAttr() (see module wxTextAttr)) -> bool()

getValue(This::wxTextCtrl()) -> string()

isEditable(This::wxTextCtrl()) -> bool()

isModified(This::wxTextCtrl()) -> bool()

isMultiLine(This::wxTextCtrl()) -> bool()

isSingleLine(This::wxTextCtrl()) -> bool()

loadFile(This::wxTextCtrl(), File::string()) -> bool()

Equivalent to loadFile(This, File, []).

loadFile(This::wxTextCtrl(), File::string(), Options::[Option]) -> bool()

Types:

Option = {fileType, integer()}

markDirty(This::wxTextCtrl()) -> ok

paste(This::wxTextCtrl()) -> ok

positionToXY(This::wxTextCtrl(), Pos::integer()) -> {bool(), X::integer(), Y::integer()}

redo(This::wxTextCtrl()) -> ok

remove(This::wxTextCtrl(), From::integer(), To::integer()) -> ok

replace(This::wxTextCtrl(), From::integer(), To::integer(), Value::string()) -> ok

saveFile(This::wxTextCtrl()) -> bool()

Equivalent to saveFile(This, []).

saveFile(This::wxTextCtrl(), Options::[Option]) -> bool()

Types:

Option = {file, string()} | {fileType, integer()}

setDefaultStyle(This::wxTextCtrl(), Style::wxTextAttr() (see module wxTextAttr)) -> bool()

setEditable(This::wxTextCtrl(), Editable::bool()) -> ok

setInsertionPoint(This::wxTextCtrl(), Pos::integer()) -> ok

setInsertionPointEnd(This::wxTextCtrl()) -> ok

setMaxLength(This::wxTextCtrl(), Len::integer()) -> ok

setSelection(This::wxTextCtrl(), From::integer(), To::integer()) -> ok

setStyle(This::wxTextCtrl(), Start::integer(), End::integer(), Style::wxTextAttr() (see module wxTextAttr)) -> bool()

setValue(This::wxTextCtrl(), Value::string()) -> ok

showPosition(This::wxTextCtrl(), Pos::integer()) -> ok

undo(This::wxTextCtrl()) -> ok

writeText(This::wxTextCtrl(), Text::string()) -> ok

xYToPosition(This::wxTextCtrl(), X::integer(), Y::integer()) -> integer()

destroy(This::wxTextCtrl()) -> ok

Destroys this object, do not use object again