VisuFbElemTextEditor.prvCheckResultingLineLengthsBeforePaste (METH)
METHOD prvCheckResultingLineLengthsBeforePaste : BOOL
This method checks the text we got from the clipboard, if the text can be pasted into the current selection resp. at the current caret position without producing too long lines. The return value is TRUE if the check found no errors.
- InOut:
Scope
Name
Type
Comment
Return
prvCheckResultingLineLengthsBeforePasteBOOLInput
cbpTextBufferStu.CharBufferPtrRepresents the buffer, that contains the (perhaps converted) string to paste
udiStringLengthUDINTThe length of the string
Output
iCountLineBreaksINTReturns the number of linebreaks within the text to paste.