# lineedit class Simple line editor for inputting short text
Inherits
object widget
Description
This is a simple, one-line editor usually used for inputting short text like names, phone numbers etc. It can display text in three echo modes (see $setEchoMode() for details).
Functions
`$text()`
Returns text contained by the widget. See also $setText().
`$setText(<text>)`
Sets editor text to <text>. See also $text().
`$maxLength()`
Returns the current maximum length of the text that can be typed in the editor. See also $setMaxLength().
`$setMaxLength(<value>)`
Sets maximum length of the text that can be typed in the editor. See also $maxLength().
`$frame()`
Returns '1' if the editor is drawn inside a frame, which is 2 pixels wide, '0' otherwise. See also $setFrame().
`$setFrame(<bool>)`
Sets editor frame drawing to <bool>. See also $frame().
`$cursorPosition()`
Returns current cursor position in the editor. See also $setCursorPosition().
`$setCursorPosition(<index>)`
Moves the cursor to place pointed by <index>. See also $cursorPosition().
`$selectAll()`
Selects whole text inside the editor. See also $setSelection(), $cut(), $copy(), $paste().
`$setSelection(<start>, <length>)`
Selects <length> characters in the editor starting at position <start>. See also $selectAll(), $cut(), $copy(), $paste().
`$copy()`
Copies selected text in the editor to the clipboard. See also $setSelection(), $cut(), $paste().
`$cut()`
Cuts selected text from the editor to the clipboard. See also $setSelection(), $copy(), $paste().
`$paste()`
Pastes text from the clipboard into the editor. The pasted text will start at cursor position. See also $setSelection(), $copy(), $cut().
`$clear()`
Deletes all text from the editor. Equal to calling $setText("").

Main, Object Classes

KVIrc 3.0.0 Documentation
Generated by root at Thu Apr 7 23:58:20 2005