|
@@ -57,7 +57,7 @@ type
|
|
PHelpKeyword = ^THelpKeyword;
|
|
PHelpKeyword = ^THelpKeyword;
|
|
THelpKeyword = record
|
|
THelpKeyword = record
|
|
KWord : PString;
|
|
KWord : PString;
|
|
- Index : integer;
|
|
|
|
|
|
+ Index : sw_integer;
|
|
end;
|
|
end;
|
|
|
|
|
|
PLinkCollection = ^TLinkCollection;
|
|
PLinkCollection = ^TLinkCollection;
|
|
@@ -72,9 +72,9 @@ type
|
|
|
|
|
|
PKeywordCollection = ^TKeywordCollection;
|
|
PKeywordCollection = ^TKeywordCollection;
|
|
TKeywordCollection = object({TSorted}TCollection)
|
|
TKeywordCollection = object({TSorted}TCollection)
|
|
- function At(Index: Integer): PHelpKeyword;
|
|
|
|
|
|
+ function At(Index: sw_Integer): PHelpKeyword;
|
|
procedure FreeItem(Item: Pointer); virtual;
|
|
procedure FreeItem(Item: Pointer); virtual;
|
|
- function Compare(Key1, Key2: Pointer): Integer; virtual;
|
|
|
|
|
|
+ function Compare(Key1, Key2: Pointer): sw_Integer; virtual;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TSearchRelation = (srEqual,srGreater,srLess,srGreatEqu,srLessEqu);
|
|
{ TSearchRelation = (srEqual,srGreater,srLess,srGreatEqu,srLessEqu);
|
|
@@ -91,19 +91,19 @@ type
|
|
Links: PLinkCollection;
|
|
Links: PLinkCollection;
|
|
ColorAreas: PColorAreaCollection;
|
|
ColorAreas: PColorAreaCollection;
|
|
constructor Init(ATopic: PTopic);
|
|
constructor Init(ATopic: PTopic);
|
|
- procedure SetParams(AMargin, AWidth: integer); virtual;
|
|
|
|
|
|
+ procedure SetParams(AMargin, AWidth: sw_integer); virtual;
|
|
function GetLineCount: sw_integer; virtual;
|
|
function GetLineCount: sw_integer; virtual;
|
|
function GetLineText(Line: sw_integer): string; virtual;
|
|
function GetLineText(Line: sw_integer): string; virtual;
|
|
- function GetLinkCount: integer; virtual;
|
|
|
|
- procedure GetLinkBounds(Index: integer; var R: TRect); virtual;
|
|
|
|
- function GetLinkFileID(Index: integer): word; virtual;
|
|
|
|
- function GetLinkContext(Index: integer): THelpCtx; virtual;
|
|
|
|
- function GetColorAreaCount: integer; virtual;
|
|
|
|
- procedure GetColorAreaBounds(Index: integer; var R: TRect); virtual;
|
|
|
|
- function GetColorAreaColor(Index: integer): word; virtual;
|
|
|
|
|
|
+ function GetLinkCount: sw_integer; virtual;
|
|
|
|
+ procedure GetLinkBounds(Index: sw_integer; var R: TRect); virtual;
|
|
|
|
+ function GetLinkFileID(Index: sw_integer): word; virtual;
|
|
|
|
+ function GetLinkContext(Index: sw_integer): THelpCtx; virtual;
|
|
|
|
+ function GetColorAreaCount: sw_integer; virtual;
|
|
|
|
+ procedure GetColorAreaBounds(Index: sw_integer; var R: TRect); virtual;
|
|
|
|
+ function GetColorAreaColor(Index: sw_integer): word; virtual;
|
|
destructor Done; virtual;
|
|
destructor Done; virtual;
|
|
private
|
|
private
|
|
- Width,Margin: integer;
|
|
|
|
|
|
+ Width,Margin: sw_integer;
|
|
StockItem: boolean;
|
|
StockItem: boolean;
|
|
procedure ReBuild;
|
|
procedure ReBuild;
|
|
end;
|
|
end;
|
|
@@ -112,15 +112,15 @@ type
|
|
Context_ : THelpCtx;
|
|
Context_ : THelpCtx;
|
|
Delta_ : TPoint;
|
|
Delta_ : TPoint;
|
|
CurPos_ : TPoint;
|
|
CurPos_ : TPoint;
|
|
- CurLink_ : integer;
|
|
|
|
|
|
+ CurLink_ : sw_integer;
|
|
FileID_ : word;
|
|
FileID_ : word;
|
|
end;
|
|
end;
|
|
|
|
|
|
PHelpViewer = ^THelpViewer;
|
|
PHelpViewer = ^THelpViewer;
|
|
THelpViewer = object(TEditor)
|
|
THelpViewer = object(TEditor)
|
|
- Margin: integer;
|
|
|
|
|
|
+ Margin: sw_integer;
|
|
HelpTopic: PHelpTopic;
|
|
HelpTopic: PHelpTopic;
|
|
- CurLink: integer;
|
|
|
|
|
|
+ CurLink: sw_integer;
|
|
constructor Init(var Bounds: TRect; AHScrollBar, AVScrollBar: PScrollBar);
|
|
constructor Init(var Bounds: TRect; AHScrollBar, AVScrollBar: PScrollBar);
|
|
procedure ChangeBounds(var Bounds: TRect); virtual;
|
|
procedure ChangeBounds(var Bounds: TRect); virtual;
|
|
procedure Draw; virtual;
|
|
procedure Draw; virtual;
|
|
@@ -128,20 +128,20 @@ type
|
|
procedure SetCurPtr(X,Y: sw_integer); virtual;
|
|
procedure SetCurPtr(X,Y: sw_integer); virtual;
|
|
function GetLineCount: sw_integer; virtual;
|
|
function GetLineCount: sw_integer; virtual;
|
|
function GetLineText(Line: sw_integer): string; virtual;
|
|
function GetLineText(Line: sw_integer): string; virtual;
|
|
- function GetLinkCount: integer; virtual;
|
|
|
|
- procedure GetLinkBounds(Index: integer; var R: TRect); virtual;
|
|
|
|
- function GetLinkFileID(Index: integer): word; virtual;
|
|
|
|
- function GetLinkContext(Index: integer): THelpCtx; virtual;
|
|
|
|
- function GetLinkText(Index: integer): string; virtual;
|
|
|
|
- function GetColorAreaCount: integer; virtual;
|
|
|
|
- procedure GetColorAreaBounds(Index: integer; var R: TRect); virtual;
|
|
|
|
- function GetColorAreaColor(Index: integer): word; virtual;
|
|
|
|
|
|
+ function GetLinkCount: sw_integer; virtual;
|
|
|
|
+ procedure GetLinkBounds(Index: sw_integer; var R: TRect); virtual;
|
|
|
|
+ function GetLinkFileID(Index: sw_integer): word; virtual;
|
|
|
|
+ function GetLinkContext(Index: sw_integer): THelpCtx; virtual;
|
|
|
|
+ function GetLinkText(Index: sw_integer): string; virtual;
|
|
|
|
+ function GetColorAreaCount: sw_integer; virtual;
|
|
|
|
+ procedure GetColorAreaBounds(Index: sw_integer; var R: TRect); virtual;
|
|
|
|
+ function GetColorAreaColor(Index: sw_integer): word; virtual;
|
|
procedure SelectNextLink(ANext: boolean); virtual;
|
|
procedure SelectNextLink(ANext: boolean); virtual;
|
|
procedure SwitchToIndex; virtual;
|
|
procedure SwitchToIndex; virtual;
|
|
procedure SwitchToTopic(SourceFileID: word; Context: THelpCtx); virtual;
|
|
procedure SwitchToTopic(SourceFileID: word; Context: THelpCtx); virtual;
|
|
procedure SetTopic(Topic: PTopic); virtual;
|
|
procedure SetTopic(Topic: PTopic); virtual;
|
|
- procedure SetCurLink(Link: integer); virtual;
|
|
|
|
- procedure SelectLink(Index: integer); virtual;
|
|
|
|
|
|
+ procedure SetCurLink(Link: sw_integer); virtual;
|
|
|
|
+ procedure SelectLink(Index: sw_integer); virtual;
|
|
procedure PrevTopic; virtual;
|
|
procedure PrevTopic; virtual;
|
|
procedure RenderTopic; virtual;
|
|
procedure RenderTopic; virtual;
|
|
procedure Lookup(S: string); virtual;
|
|
procedure Lookup(S: string); virtual;
|
|
@@ -187,7 +187,8 @@ type
|
|
implementation
|
|
implementation
|
|
|
|
|
|
uses
|
|
uses
|
|
- Video;
|
|
|
|
|
|
+ Video,
|
|
|
|
+ WViews;
|
|
|
|
|
|
const CommentColor = Blue;
|
|
const CommentColor = Blue;
|
|
|
|
|
|
@@ -218,7 +219,7 @@ begin
|
|
if P<>nil then Dispose(P);
|
|
if P<>nil then Dispose(P);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function NewKeyword(Index: integer; KWord: string): PHelpKeyword;
|
|
|
|
|
|
+function NewKeyword(Index: sw_integer; KWord: string): PHelpKeyword;
|
|
var P: PHelpKeyword;
|
|
var P: PHelpKeyword;
|
|
begin
|
|
begin
|
|
New(P); FillChar(P^, SizeOf(P^), 0);
|
|
New(P); FillChar(P^, SizeOf(P^), 0);
|
|
@@ -245,7 +246,7 @@ begin
|
|
if Item<>nil then DisposeColorArea(Item);
|
|
if Item<>nil then DisposeColorArea(Item);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TKeywordCollection.At(Index: Integer): PHelpKeyword;
|
|
|
|
|
|
+function TKeywordCollection.At(Index: sw_Integer): PHelpKeyword;
|
|
begin
|
|
begin
|
|
At:=inherited At(Index);
|
|
At:=inherited At(Index);
|
|
end;
|
|
end;
|
|
@@ -255,8 +256,8 @@ begin
|
|
if Item<>nil then DisposeKeyword(Item);
|
|
if Item<>nil then DisposeKeyword(Item);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TKeywordCollection.Compare(Key1, Key2: Pointer): Integer;
|
|
|
|
-var R: integer;
|
|
|
|
|
|
+function TKeywordCollection.Compare(Key1, Key2: Pointer): sw_Integer;
|
|
|
|
+var R: sw_integer;
|
|
K1: PHelpKeyword absolute Key1;
|
|
K1: PHelpKeyword absolute Key1;
|
|
K2: PHelpKeyword absolute Key2;
|
|
K2: PHelpKeyword absolute Key2;
|
|
S1,S2: string;
|
|
S1,S2: string;
|
|
@@ -268,9 +269,9 @@ begin
|
|
Compare:=R;
|
|
Compare:=R;
|
|
end;
|
|
end;
|
|
|
|
|
|
-{function TAdvancedStringCollection.SearchItem(Key: pointer; Rel: TSearchRelation; var Index: integer): boolean;
|
|
|
|
|
|
+{function TAdvancedStringCollection.SearchItem(Key: pointer; Rel: TSearchRelation; var Index: sw_integer): boolean;
|
|
var
|
|
var
|
|
- L, H, I, C: Integer;
|
|
|
|
|
|
+ L, H, I, C: sw_Integer;
|
|
const resSmaller = -1; resEqual = 0; resGreater = 1;
|
|
const resSmaller = -1; resEqual = 0; resGreater = 1;
|
|
begin
|
|
begin
|
|
Index:=-1;
|
|
Index:=-1;
|
|
@@ -311,7 +312,7 @@ begin
|
|
New(Lines, Init(100,100)); New(Links, Init(50,50)); New(ColorAreas, Init(50,50));
|
|
New(Lines, Init(100,100)); New(Links, Init(50,50)); New(ColorAreas, Init(50,50));
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpTopic.SetParams(AMargin, AWidth: integer);
|
|
|
|
|
|
+procedure THelpTopic.SetParams(AMargin, AWidth: sw_integer);
|
|
begin
|
|
begin
|
|
if Width<>AWidth then
|
|
if Width<>AWidth then
|
|
begin
|
|
begin
|
|
@@ -321,16 +322,16 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure THelpTopic.ReBuild;
|
|
procedure THelpTopic.ReBuild;
|
|
-var TextPos,LinkNo: word;
|
|
|
|
|
|
+var TextPos,LinkNo: sw_word;
|
|
Line,CurWord: string;
|
|
Line,CurWord: string;
|
|
C: char;
|
|
C: char;
|
|
InLink,InColorArea: boolean;
|
|
InLink,InColorArea: boolean;
|
|
LinkStart,LinkEnd,ColorAreaStart,ColorAreaEnd: TPoint;
|
|
LinkStart,LinkEnd,ColorAreaStart,ColorAreaEnd: TPoint;
|
|
CurPos: TPoint;
|
|
CurPos: TPoint;
|
|
- ZeroLevel: integer;
|
|
|
|
- LineStart,NextLineStart: integer;
|
|
|
|
|
|
+ ZeroLevel: sw_integer;
|
|
|
|
+ LineStart,NextLineStart: sw_integer;
|
|
LineAlign : (laLeft,laCenter,laRight);
|
|
LineAlign : (laLeft,laCenter,laRight);
|
|
- FirstLink,LastLink: integer;
|
|
|
|
|
|
+ FirstLink,LastLink: sw_integer;
|
|
procedure ClearLine;
|
|
procedure ClearLine;
|
|
begin
|
|
begin
|
|
Line:='';
|
|
Line:='';
|
|
@@ -338,7 +339,7 @@ end;
|
|
procedure AddWord(TheWord: string); forward;
|
|
procedure AddWord(TheWord: string); forward;
|
|
procedure NextLine;
|
|
procedure NextLine;
|
|
var P: sw_integer;
|
|
var P: sw_integer;
|
|
- I,Delta: integer;
|
|
|
|
|
|
+ I,Delta: sw_integer;
|
|
begin
|
|
begin
|
|
Line:=CharStr(' ',Margin)+Line;
|
|
Line:=CharStr(' ',Margin)+Line;
|
|
repeat
|
|
repeat
|
|
@@ -487,45 +488,45 @@ begin
|
|
GetLineText:=S;
|
|
GetLineText:=S;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpTopic.GetLinkCount: integer;
|
|
|
|
|
|
+function THelpTopic.GetLinkCount: sw_integer;
|
|
begin
|
|
begin
|
|
GetLinkCount:=Links^.Count;
|
|
GetLinkCount:=Links^.Count;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpTopic.GetLinkBounds(Index: integer; var R: TRect);
|
|
|
|
|
|
+procedure THelpTopic.GetLinkBounds(Index: sw_integer; var R: TRect);
|
|
var P: PHelpLink;
|
|
var P: PHelpLink;
|
|
begin
|
|
begin
|
|
P:=Links^.At(Index);
|
|
P:=Links^.At(Index);
|
|
R:=P^.Bounds;
|
|
R:=P^.Bounds;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpTopic.GetLinkFileID(Index: integer): word;
|
|
|
|
|
|
+function THelpTopic.GetLinkFileID(Index: sw_integer): word;
|
|
var P: PHelpLink;
|
|
var P: PHelpLink;
|
|
begin
|
|
begin
|
|
P:=Links^.At(Index);
|
|
P:=Links^.At(Index);
|
|
GetLinkFileID:=P^.FileID;
|
|
GetLinkFileID:=P^.FileID;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpTopic.GetLinkContext(Index: integer): THelpCtx;
|
|
|
|
|
|
+function THelpTopic.GetLinkContext(Index: sw_integer): THelpCtx;
|
|
var P: PHelpLink;
|
|
var P: PHelpLink;
|
|
begin
|
|
begin
|
|
P:=Links^.At(Index);
|
|
P:=Links^.At(Index);
|
|
GetLinkContext:=P^.Context;
|
|
GetLinkContext:=P^.Context;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpTopic.GetColorAreaCount: integer;
|
|
|
|
|
|
+function THelpTopic.GetColorAreaCount: sw_integer;
|
|
begin
|
|
begin
|
|
GetColorAreaCount:=ColorAreas^.Count;
|
|
GetColorAreaCount:=ColorAreas^.Count;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpTopic.GetColorAreaBounds(Index: integer; var R: TRect);
|
|
|
|
|
|
+procedure THelpTopic.GetColorAreaBounds(Index: sw_integer; var R: TRect);
|
|
var P: PHelpColorArea;
|
|
var P: PHelpColorArea;
|
|
begin
|
|
begin
|
|
P:=ColorAreas^.At(Index);
|
|
P:=ColorAreas^.At(Index);
|
|
R:=P^.Bounds;
|
|
R:=P^.Bounds;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpTopic.GetColorAreaColor(Index: integer): word;
|
|
|
|
|
|
+function THelpTopic.GetColorAreaColor(Index: sw_integer): word;
|
|
var P: PHelpColorArea;
|
|
var P: PHelpColorArea;
|
|
begin
|
|
begin
|
|
P:=ColorAreas^.At(Index);
|
|
P:=ColorAreas^.At(Index);
|
|
@@ -579,7 +580,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure THelpViewer.SetCurPtr(X,Y: sw_integer);
|
|
procedure THelpViewer.SetCurPtr(X,Y: sw_integer);
|
|
-var OldCurLink,I: integer;
|
|
|
|
|
|
+var OldCurLink,I: sw_integer;
|
|
OldPos,P: TPoint;
|
|
OldPos,P: TPoint;
|
|
R: TRect;
|
|
R: TRect;
|
|
begin
|
|
begin
|
|
@@ -600,7 +601,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
function THelpViewer.GetLineCount: sw_integer;
|
|
function THelpViewer.GetLineCount: sw_integer;
|
|
-var Count: integer;
|
|
|
|
|
|
+var Count: sw_integer;
|
|
begin
|
|
begin
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetLineCount;
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetLineCount;
|
|
GetLineCount:=Count;
|
|
GetLineCount:=Count;
|
|
@@ -613,32 +614,32 @@ begin
|
|
GetLineText:=S;
|
|
GetLineText:=S;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetLinkCount: integer;
|
|
|
|
-var Count: integer;
|
|
|
|
|
|
+function THelpViewer.GetLinkCount: sw_integer;
|
|
|
|
+var Count: sw_integer;
|
|
begin
|
|
begin
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetLinkCount;
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetLinkCount;
|
|
GetLinkCount:=Count;
|
|
GetLinkCount:=Count;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpViewer.GetLinkBounds(Index: integer; var R: TRect);
|
|
|
|
|
|
+procedure THelpViewer.GetLinkBounds(Index: sw_integer; var R: TRect);
|
|
begin
|
|
begin
|
|
HelpTopic^.GetLinkBounds(Index,R);
|
|
HelpTopic^.GetLinkBounds(Index,R);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetLinkFileID(Index: integer): word;
|
|
|
|
|
|
+function THelpViewer.GetLinkFileID(Index: sw_integer): word;
|
|
begin
|
|
begin
|
|
GetLinkFileID:=HelpTopic^.GetLinkFileID(Index);
|
|
GetLinkFileID:=HelpTopic^.GetLinkFileID(Index);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetLinkContext(Index: integer): THelpCtx;
|
|
|
|
|
|
+function THelpViewer.GetLinkContext(Index: sw_integer): THelpCtx;
|
|
begin
|
|
begin
|
|
GetLinkContext:=HelpTopic^.GetLinkContext(Index);
|
|
GetLinkContext:=HelpTopic^.GetLinkContext(Index);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetLinkText(Index: integer): string;
|
|
|
|
|
|
+function THelpViewer.GetLinkText(Index: sw_integer): string;
|
|
var S: string;
|
|
var S: string;
|
|
R: TRect;
|
|
R: TRect;
|
|
- Y,StartX,EndX: integer;
|
|
|
|
|
|
+ Y,StartX,EndX: sw_integer;
|
|
begin
|
|
begin
|
|
S:=''; GetLinkBounds(Index,R);
|
|
S:=''; GetLinkBounds(Index,R);
|
|
Y:=R.A.Y;
|
|
Y:=R.A.Y;
|
|
@@ -652,25 +653,25 @@ begin
|
|
GetLinkText:=S;
|
|
GetLinkText:=S;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetColorAreaCount: integer;
|
|
|
|
-var Count: integer;
|
|
|
|
|
|
+function THelpViewer.GetColorAreaCount: sw_integer;
|
|
|
|
+var Count: sw_integer;
|
|
begin
|
|
begin
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetColorAreaCount;
|
|
if HelpTopic=nil then Count:=0 else Count:=HelpTopic^.GetColorAreaCount;
|
|
GetColorAreaCount:=Count;
|
|
GetColorAreaCount:=Count;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpViewer.GetColorAreaBounds(Index: integer; var R: TRect);
|
|
|
|
|
|
+procedure THelpViewer.GetColorAreaBounds(Index: sw_integer; var R: TRect);
|
|
begin
|
|
begin
|
|
HelpTopic^.GetColorAreaBounds(Index,R);
|
|
HelpTopic^.GetColorAreaBounds(Index,R);
|
|
end;
|
|
end;
|
|
|
|
|
|
-function THelpViewer.GetColorAreaColor(Index: integer): word;
|
|
|
|
|
|
+function THelpViewer.GetColorAreaColor(Index: sw_integer): word;
|
|
begin
|
|
begin
|
|
GetColorAreaColor:=HelpTopic^.GetColorAreaColor(Index);
|
|
GetColorAreaColor:=HelpTopic^.GetColorAreaColor(Index);
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure THelpViewer.SelectNextLink(ANext: boolean);
|
|
procedure THelpViewer.SelectNextLink(ANext: boolean);
|
|
-var I,Link: integer;
|
|
|
|
|
|
+var I,Link: sw_integer;
|
|
R: TRect;
|
|
R: TRect;
|
|
begin
|
|
begin
|
|
if HelpTopic=nil then Exit;
|
|
if HelpTopic=nil then Exit;
|
|
@@ -694,7 +695,7 @@ begin
|
|
SetCurLink(Link);
|
|
SetCurLink(Link);
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpViewer.SetCurLink(Link: integer);
|
|
|
|
|
|
+procedure THelpViewer.SetCurLink(Link: sw_integer);
|
|
var R: TRect;
|
|
var R: TRect;
|
|
begin
|
|
begin
|
|
if Link<>-1 then
|
|
if Link<>-1 then
|
|
@@ -797,7 +798,7 @@ begin
|
|
end;
|
|
end;
|
|
|
|
|
|
procedure THelpViewer.BuildTopicWordList;
|
|
procedure THelpViewer.BuildTopicWordList;
|
|
-var I: integer;
|
|
|
|
|
|
+var I: sw_integer;
|
|
begin
|
|
begin
|
|
WordList^.FreeAll;
|
|
WordList^.FreeAll;
|
|
for I:=0 to GetLinkCount-1 do
|
|
for I:=0 to GetLinkCount-1 do
|
|
@@ -861,7 +862,7 @@ begin
|
|
InLookup:=false;
|
|
InLookup:=false;
|
|
end;
|
|
end;
|
|
|
|
|
|
-procedure THelpViewer.SelectLink(Index: integer);
|
|
|
|
|
|
+procedure THelpViewer.SelectLink(Index: sw_integer);
|
|
var ID: word;
|
|
var ID: word;
|
|
Ctx: THelpCtx;
|
|
Ctx: THelpCtx;
|
|
begin
|
|
begin
|
|
@@ -940,8 +941,8 @@ procedure THelpViewer.Draw;
|
|
var NormalColor, LinkColor,
|
|
var NormalColor, LinkColor,
|
|
SelectColor, SelectionColor: word;
|
|
SelectColor, SelectionColor: word;
|
|
B: TDrawBuffer;
|
|
B: TDrawBuffer;
|
|
- DX,DY,X,Y,I,MinX,MaxX,ScreenX: integer;
|
|
|
|
- LastLinkDrawn,LastColorAreaDrawn: integer;
|
|
|
|
|
|
+ DX,DY,X,Y,I,MinX,MaxX,ScreenX: sw_integer;
|
|
|
|
+ LastLinkDrawn,LastColorAreaDrawn: sw_integer;
|
|
S: string;
|
|
S: string;
|
|
R: TRect;
|
|
R: TRect;
|
|
{$ifndef EDITORS}
|
|
{$ifndef EDITORS}
|
|
@@ -1138,7 +1139,24 @@ end;
|
|
END.
|
|
END.
|
|
{
|
|
{
|
|
$Log$
|
|
$Log$
|
|
- Revision 1.10 1999-08-16 18:25:31 peter
|
|
|
|
|
|
+ Revision 1.11 2000-02-07 08:29:13 michael
|
|
|
|
+ [*] the fake (!) TOKENS.PAS still contained the typo bug
|
|
|
|
+ FSplit(,n,d,e) (correctly FSplit(,d,n,e))
|
|
|
|
+ [*] CodeComplete had a very ugly bug - coordinates were document-relative
|
|
|
|
+ (instead of being screen-relative)
|
|
|
|
+ [*] TResourceStream didn't count the size of the resource names when
|
|
|
|
+ determining the file size and this could lead to the last resources not
|
|
|
|
+ loaded correctly
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ [+] Ctrl-Enter in editor now tries to open the file at cursor
|
|
|
|
+ [+] CodeComplete option added to Options|Environment|Editor
|
|
|
|
+ [+] user interface for managing CodeComplete implemented
|
|
|
|
+ [+] user interface for CodeTemplates implemented
|
|
|
|
+ [+] CodeComplete wordlist and CodeTemplates stored in desktop file
|
|
|
|
+ [+] help topic size no longer limited to 64KB when compiled with FPC
|
|
|
|
+
|
|
|
|
+ Revision 1.10 1999/08/16 18:25:31 peter
|
|
* Adjusting the selection when the editor didn't contain any line.
|
|
* Adjusting the selection when the editor didn't contain any line.
|
|
* Reserved word recognition redesigned, but this didn't affect the overall
|
|
* Reserved word recognition redesigned, but this didn't affect the overall
|
|
syntax highlight speed remarkably (at least not on my Amd-K6/350).
|
|
syntax highlight speed remarkably (at least not on my Amd-K6/350).
|