Freigeben über


Text Editor and Clipboard Manipulation Routines

These API routines allow you to manipulate the Visual FoxPro text editor, the file open in the text editor, and the clipboard.

_EdActive( )

Hides or shows the selection range or insertion point.

_EdCloseFile( )

Closes the specified file while saving without asking, prompting before saving, or saving as another file.

_EdCopy( )

Copies selected area to the clipboard.

_EdCut( )

Copies selected area to the clipboard and deletes it from the editor.

_EdDelete( )

Deletes the selected area. If there is no selection, deletes character at current pos.

_EdGetChar( )

Gets the character at EDPOS.

_EdGetEnv( )

Reads various editor settings.

_EdGetLineNum( )

Returns the line number for the position EDPOS.

_EdGetLinePos( )

Returns the EDPOS for the beginning of the line EDLINE.

_EdGetPos( )

Returns current editor POS, or returns anchor point if there's a selection.

_EdGetStr( )

Gets the text between EDPOS and EDPOS inclusive, and places it in TEXT.

_EdIndent( )

Indents the selected text by int tab stops. Int can be negative in order to format a hanging indent.

_EdInsert( )

Inserts BYTES of TEXT.

_EdLastError( )

Returns the error number of the last editor error.

_EdOpenFile( )

Starts an editor session on this file.

_EdPaste( )

Copies clipboard text into the editor at current position.

_EdPosInView( )

Returns TRUE if the editor position is visible.

_EdRedo( )

Redoes the most recent undo.

_EdRevert( )

Reverts to a saved file.

_EdSave( )

Saves the file without closing the editing window.

_EdScrollToPos( )

Makes sure that EDPOS passed is on the screen, but doesn't move insertion point. BOOL means center EDPOS vertically.

_EdScrollToSel( )

Makes sure the selection anchor point is on the screen. BOOL means center anchor point vertically.

_EdSelect( )

Selects the range from EDPOS to EDPOS. To move the insertion point, set both EDPOSes the same.

_EdSendKey( )

Simulates key press given by int.

_EdSetEnv( )

Sets various editor settings.

_EdSetPos( )

Moves insertion point, and has side affect of unselecting anything currently selected.

_EdSkipLines( )

Moves insertion point from EDPOS to beginning of line int.

_EdUndo( )

Undoes the most recent changes.

_EdUndoOn( )

Groups the actions performed after _EdUndoOn( ) is passed until it is passed again as a single action for undo purposes.