Kbase P23870: EDITOR widget NUM-LINES appears to return wrong results If W
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  4/28/2003 |
|
Status: Unverified
SYMPTOM(s):
EDITOR widget NUM-LINES appears to return wrong results If WORD-WRAP is TRUE.
FIX:
The NUM-LINES attribute of the editor widget can not be less than 1 + the number of CHR(10) regardless of the editor widget width. This is due to the fact that hard returns; CHR(10); generate a line each.
To see that the NUM-LINES is independent of the number of CHR(10) in an editor widget, and that the WORD-WRAP attributes indeed increases the NUM-LINES, make the editor·s width shorter than some of the lines in the widget. Notice that the NUM-LINES attribute value will increase.