function NewEditbox( AParent: PControl; Options: TEditOptions ): PControl;
Creates edit box control. To create multiline edit box, similar to TMemo in VCL, apply eoMultiline in Options. Following properties, methods, events are special for edit controls:
property OnChange: TOnEvent; |
|
---|---|
procedure SelectAll; |
|
procedure ReplaceSelection( const Value: KOLString; aCanUndo: Boolean ); |
|
procedure DeleteLines( FromLine, ToLine: Integer ); |
|
function Item2Pos( ItemIdx: Integer ): DWORD; |
|
function Pos2Item( Pos: Integer ): DWORD; |
|
function SavePosition: TEditPositions; |
|
procedure RestorePosition( const p: TEditPositions ); |
|
procedure UpdatePosition( var p: TEditPositions; FromPos, CountInsertDelChars, CountInsertDelLines: Integer ); |
|
function EditTabChar: PControl; |
|
function CanUndo: Boolean; |
|
procedure EmptyUndoBuffer; |
|
function Undo: Boolean; |
|
property Text: KOLString; |
|
property SelStart: Integer; |
|
property SelLength: Integer; |
|
property Selection: KOLString; |
|
property Count: Integer; |
|
property Items[ Idx: Integer ]: KOLString; |
|
property ItemSelected[ ItemIdx: Integer ]: Boolean; |
|
property TextAlign: TTextAlign; |
|
property Ed_Transparent: Boolean; |