# 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(""). !fn $setDragEnabled(<bool>) With this property user can drag text in the lineedit.
!fn $setInputMask(); Sets the validation input mask to inputMask.
Es:
%esempio->$setInputMask( "+99 99 99 99 99;_" );
%esempio->$setInputMask( "000.000.000.000;_" );
%esempio->Ip Number Mask.
%esempio->setInputMask( ">AAAAA-AAAAA-AAAAA-AAAAA-AAAAA;#" );
The mask format understands these mask characters:
Character Meaning
A ASCII alphabetic character required. A-Z, a-z.
a ASCII alphabetic character permitted but not required.
N ASCII alphanumeric character required. A-Z, a-z, 0-9.
n ASCII alphanumeric character permitted but not required.
X Any character required.
x Any character permitted but not required.
9 ASCII digit required. 0-9.
0 ASCII digit permitted but not required.
D ASCII digit required. 1-9.
d ASCII digit permitted but not required.
# ASCII digit or plus/minus sign permitted but not required.
> All following alphabetic characters are uppercased.
< All following alphabetic characters are lowercased.
! Switch off case conversion.
\ Use \ to escape the special characters listed above to use them as separators.
The mask consists of a string of mask characters and separators, optionally
followed by a semi-colon and the character used for blanks: the blank characters
are always removed from the text after editing. The default blank character is space.

Index, Object Classes

KVIrc 3.2.0 Documentation
Generated by kris at Wed Oct 25 20:15:27 2006