wxTextCtrl

See external documentation: wxTextCtrl.

See external documentation: wxTextCtrl.

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

Types


wxTextCtrl() = wx:wx_object()

Functions


new() -> wxTextCtrl()

See external documentation.

new(Parent, Id) -> wxTextCtrl()

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

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

new(Parent, Id, Options::[Option]) -> 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)}

See external documentation.

appendText(This, Text) -> ok

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

See external documentation.

canCopy(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

canCut(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

canPaste(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

canRedo(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

canUndo(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

clear(This) -> ok

  • This = wxTextCtrl()

See external documentation.

copy(This) -> ok

  • This = wxTextCtrl()

See external documentation.

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

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

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

  • 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)}

See external documentation.

cut(This) -> ok

  • This = wxTextCtrl()

See external documentation.

discardEdits(This) -> ok

  • This = wxTextCtrl()

See external documentation.

changeValue(This, Value) -> ok

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

See external documentation.

emulateKeyPress(This, Event) -> boolean()

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

See external documentation.

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

  • This = wxTextCtrl()

See external documentation.

getInsertionPoint(This) -> integer()

  • This = wxTextCtrl()

See external documentation.

getLastPosition(This) -> integer()

  • This = wxTextCtrl()

See external documentation.

getLineLength(This, LineNo) -> integer()

  • This = wxTextCtrl()
  • LineNo = integer()

See external documentation.

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

  • This = wxTextCtrl()
  • LineNo = integer()

See external documentation.

getNumberOfLines(This) -> integer()

  • This = wxTextCtrl()

See external documentation.

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

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

See external documentation.

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

  • This = wxTextCtrl()

See external documentation.

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

  • This = wxTextCtrl()

See external documentation.

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

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

See external documentation.

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

  • This = wxTextCtrl()

See external documentation.

isEditable(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

isModified(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

isMultiLine(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

isSingleLine(This) -> boolean()

  • This = wxTextCtrl()

See external documentation.

loadFile(This, File) -> boolean()

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

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

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

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

See external documentation.

markDirty(This) -> ok

  • This = wxTextCtrl()

See external documentation.

paste(This) -> ok

  • This = wxTextCtrl()

See external documentation.

positionToXY(This, Pos) -> Result

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

See external documentation.

redo(This) -> ok

  • This = wxTextCtrl()

See external documentation.

remove(This, From, To) -> ok

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

See external documentation.

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

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

See external documentation.

saveFile(This) -> boolean()

  • This = wxTextCtrl()

Equivalent to saveFile(This, []).

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

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

See external documentation.

setDefaultStyle(This, Style) -> boolean()

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

See external documentation.

setEditable(This, Editable) -> ok

  • This = wxTextCtrl()
  • Editable = boolean()

See external documentation.

setInsertionPoint(This, Pos) -> ok

  • This = wxTextCtrl()
  • Pos = integer()

See external documentation.

setInsertionPointEnd(This) -> ok

  • This = wxTextCtrl()

See external documentation.

setMaxLength(This, Len) -> ok

  • This = wxTextCtrl()
  • Len = integer()

See external documentation.

setSelection(This, From, To) -> ok

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

See external documentation.

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

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

See external documentation.

setValue(This, Value) -> ok

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

See external documentation.

showPosition(This, Pos) -> ok

  • This = wxTextCtrl()
  • Pos = integer()

See external documentation.

undo(This) -> ok

  • This = wxTextCtrl()

See external documentation.

writeText(This, Text) -> ok

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

See external documentation.

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

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

See external documentation.

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

Destroys this object, do not use object again