Buffer positioning

In this section:

INTEGER FUNCTION SCROLL_EDIT_BUFFER@(E,HPOS,VPOS)
INTEGER E(24) ! EDIT_INFO block
INTEGER HPOS
INTEGER VPOS

This function positions the buffer at a given point and returns 1 if successful and zero otherwise.

INTEGER FUNCTION ADVANCE_EDIT_BUFFER@(E,N)
INTEGER E(24)     ! EDIT_INFO block
INTEGER N         ! Count of characters to move

This routine moves the pointer through an edit buffer character by character. The carriage return/line feed character pair are treated as one. N can be set to a negative value in order to move backwards through the buffer. The number returned is the number of character positions moved. Thus unless the start or end of the buffer was encountered, the value of N will be returned unchanged.

Alternatively you can pass the window handle instead of the EDIT_INFO.

See also: EDIT_INFO

 

 

Basket
Empty
 
Copyright © 1999-2024 Silverfrost Limited