Reformat
This commit is contained in:
parent
82abcd26b6
commit
1318c9d100
|
@ -321,11 +321,15 @@ Begin
|
||||||
#72 : Begin
|
#72 : Begin
|
||||||
If (CurLine = 1) and (TopPage > 1) Then Begin
|
If (CurLine = 1) and (TopPage > 1) Then Begin
|
||||||
Dec (TopPage);
|
Dec (TopPage);
|
||||||
|
|
||||||
DrawPage;
|
DrawPage;
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End Else If CurLine > 1 Then Begin
|
End Else If CurLine > 1 Then Begin
|
||||||
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
Dec (CurLine);
|
Dec (CurLine);
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
|
@ -345,12 +349,16 @@ Begin
|
||||||
End;
|
End;
|
||||||
#75 : If (CurLPos > 1) and (Text[TopPage + CurLine - 1].Links > 0) Then Begin
|
#75 : If (CurLPos > 1) and (Text[TopPage + CurLine - 1].Links > 0) Then Begin
|
||||||
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
Dec(CurLPos);
|
Dec(CurLPos);
|
||||||
|
|
||||||
LinkON;
|
LinkON;
|
||||||
End;
|
End;
|
||||||
#77 : If CurLPos < Text[TopPage + CurLine - 1].Links Then Begin
|
#77 : If CurLPos < Text[TopPage + CurLine - 1].Links Then Begin
|
||||||
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
Inc(CurLPos);
|
Inc(CurLPos);
|
||||||
|
|
||||||
LinkON;
|
LinkON;
|
||||||
End;
|
End;
|
||||||
#79 : If TopPage + WinSize <= Lines Then Begin
|
#79 : If TopPage + WinSize <= Lines Then Begin
|
||||||
|
@ -363,29 +371,39 @@ Begin
|
||||||
End Else
|
End Else
|
||||||
If TopPage + CurLine <= Lines Then Begin
|
If TopPage + CurLine <= Lines Then Begin
|
||||||
LinkOFF (TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF (TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
CurLine := Lines - TopPage + 1;
|
CurLine := Lines - TopPage + 1;
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End;
|
End;
|
||||||
#80 : Begin
|
#80 : Begin
|
||||||
If (CurLine = WinSize) and (TopPage + WinSize <= Lines) Then Begin
|
If (CurLine = WinSize) and (TopPage + WinSize <= Lines) Then Begin
|
||||||
Inc(TopPage);
|
Inc(TopPage);
|
||||||
|
|
||||||
DrawPage;
|
DrawPage;
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End Else
|
End Else
|
||||||
If (CurLine < WinSize) And (TopPage + CurLine <= Lines) Then Begin
|
If (CurLine < WinSize) And (TopPage + CurLine <= Lines) Then Begin
|
||||||
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF(TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
Inc(CurLine);
|
Inc(CurLine);
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End;
|
End;
|
||||||
End;
|
End;
|
||||||
#81 : If TopPage + WinSize <= Lines Then Begin
|
#81 : If TopPage + WinSize <= Lines Then Begin
|
||||||
PageDown;
|
PageDown;
|
||||||
|
|
||||||
DrawPage;
|
DrawPage;
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End Else
|
End Else
|
||||||
If TopPage + CurLine <= Lines Then Begin
|
If TopPage + CurLine <= Lines Then Begin
|
||||||
LinkOFF (TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
LinkOFF (TopPage + CurLine - 1, WinY1 + CurLine - 1, CurLPos);
|
||||||
|
|
||||||
CurLine := Lines - TopPage + 1;
|
CurLine := Lines - TopPage + 1;
|
||||||
|
|
||||||
UpdateCursor;
|
UpdateCursor;
|
||||||
End;
|
End;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue