Erlang logo
User's Guide
Reference Manual
Release Notes
PDF
Top

wxErlang
Reference Manual
Version 1.6.1


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

Types:

Parent = wxWindow() (see module wxWindow)
Id = integer()

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

new(Parent, Id, Options::[Option]) -> wxTextCtrl()

Types:

Parent = wxWindow() (see module wxWindow)
Id = integer()
Option = {value, chardata() (see module unicode)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx_object() (see module wx)}

appendText(This, Text) -> ok

Types:

This = wxTextCtrl()
Text = chardata() (see module unicode)

canCopy(This) -> boolean()

Types:

This = wxTextCtrl()

canCut(This) -> boolean()

Types:

This = wxTextCtrl()

canPaste(This) -> boolean()

Types:

This = wxTextCtrl()

canRedo(This) -> boolean()

Types:

This = wxTextCtrl()

canUndo(This) -> boolean()

Types:

This = wxTextCtrl()

clear(This) -> ok

Types:

This = wxTextCtrl()

copy(This) -> ok

Types:

This = wxTextCtrl()

create(This, Parent, Id) -> boolean()

Types:

This = wxTextCtrl()
Parent = wxWindow() (see module wxWindow)
Id = integer()

create(This, Parent, Id, Options::[Option]) -> boolean()

Types:

This = wxTextCtrl()
Parent = wxWindow() (see module wxWindow)
Id = integer()
Option = {value, chardata() (see module unicode)} | {pos, {X::integer(), Y::integer()}} | {size, {W::integer(), H::integer()}} | {style, integer()} | {validator, wx_object() (see module wx)}

cut(This) -> ok

Types:

This = wxTextCtrl()

discardEdits(This) -> ok

Types:

This = wxTextCtrl()

changeValue(This, Value) -> ok

Types:

This = wxTextCtrl()
Value = chardata() (see module unicode)

emulateKeyPress(This, Event) -> boolean()

Types:

This = wxTextCtrl()
Event = wxKeyEvent() (see module wxKeyEvent)

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

Types:

This = wxTextCtrl()

getInsertionPoint(This) -> integer()

Types:

This = wxTextCtrl()

getLastPosition(This) -> integer()

Types:

This = wxTextCtrl()

getLineLength(This, LineNo) -> integer()

Types:

This = wxTextCtrl()
LineNo = integer()

getLineText(This, LineNo) -> charlist() (see module unicode)

Types:

This = wxTextCtrl()
LineNo = integer()

getNumberOfLines(This) -> integer()

Types:

This = wxTextCtrl()

getRange(This, From, To) -> charlist() (see module unicode)

Types:

This = wxTextCtrl()
From = integer()
To = integer()

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

Types:

This = wxTextCtrl()

getStringSelection(This) -> charlist() (see module unicode)

Types:

This = wxTextCtrl()

getStyle(This, Position, Style) -> boolean()

Types:

This = wxTextCtrl()
Position = integer()
Style = wxTextAttr() (see module wxTextAttr)

getValue(This) -> charlist() (see module unicode)

Types:

This = wxTextCtrl()

isEditable(This) -> boolean()

Types:

This = wxTextCtrl()

isModified(This) -> boolean()

Types:

This = wxTextCtrl()

isMultiLine(This) -> boolean()

Types:

This = wxTextCtrl()

isSingleLine(This) -> boolean()

Types:

This = wxTextCtrl()

loadFile(This, File) -> boolean()

Types:

This = wxTextCtrl()
File = chardata() (see module unicode)

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

loadFile(This, File, Options::[Option]) -> boolean()

Types:

This = wxTextCtrl()
File = chardata() (see module unicode)
Option = {fileType, integer()}

markDirty(This) -> ok

Types:

This = wxTextCtrl()

paste(This) -> ok

Types:

This = wxTextCtrl()

positionToXY(This, Pos) -> Result

Types:

Result = {Res::boolean(), X::integer(), Y::integer()}
This = wxTextCtrl()
Pos = integer()

redo(This) -> ok

Types:

This = wxTextCtrl()

remove(This, From, To) -> ok

Types:

This = wxTextCtrl()
From = integer()
To = integer()

replace(This, From, To, Value) -> ok

Types:

This = wxTextCtrl()
From = integer()
To = integer()
Value = chardata() (see module unicode)

saveFile(This) -> boolean()

Types:

This = wxTextCtrl()

Equivalent to saveFile(This, []).

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

Types:

This = wxTextCtrl()
Option = {file, chardata() (see module unicode)} | {fileType, integer()}

setDefaultStyle(This, Style) -> boolean()

Types:

This = wxTextCtrl()
Style = wxTextAttr() (see module wxTextAttr)

setEditable(This, Editable) -> ok

Types:

This = wxTextCtrl()
Editable = boolean()

setInsertionPoint(This, Pos) -> ok

Types:

This = wxTextCtrl()
Pos = integer()

setInsertionPointEnd(This) -> ok

Types:

This = wxTextCtrl()

setMaxLength(This, Len) -> ok

Types:

This = wxTextCtrl()
Len = integer()

setSelection(This, From, To) -> ok

Types:

This = wxTextCtrl()
From = integer()
To = integer()

setStyle(This, Start, End, Style) -> boolean()

Types:

This = wxTextCtrl()
Start = integer()
End = integer()
Style = wxTextAttr() (see module wxTextAttr)

setValue(This, Value) -> ok

Types:

This = wxTextCtrl()
Value = chardata() (see module unicode)

showPosition(This, Pos) -> ok

Types:

This = wxTextCtrl()
Pos = integer()

undo(This) -> ok

Types:

This = wxTextCtrl()

writeText(This, Text) -> ok

Types:

This = wxTextCtrl()
Text = chardata() (see module unicode)

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

Types:

This = wxTextCtrl()
X = integer()
Y = integer()

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

Destroys this object, do not use object again