|
@@ -141,8 +141,11 @@ end;
|
|
function TWindowListBox.GetText(Item,MaxLen: Sw_Integer): String;
|
|
function TWindowListBox.GetText(Item,MaxLen: Sw_Integer): String;
|
|
var P: PView;
|
|
var P: PView;
|
|
S: string;
|
|
S: string;
|
|
|
|
+ savMaxLen: Sw_Integer;
|
|
begin
|
|
begin
|
|
P:=List^.At(Item);
|
|
P:=List^.At(Item);
|
|
|
|
+ savMaxLen:=MaxLen;
|
|
|
|
+ MaxLen:=MaxLen-9; { have to have less to actually fit in long file paths }
|
|
case P^.HelpCtx of
|
|
case P^.HelpCtx of
|
|
hcSourceWindow : S:=PSourceWindow(P)^.GetTitle(MaxLen);
|
|
hcSourceWindow : S:=PSourceWindow(P)^.GetTitle(MaxLen);
|
|
hcHelpWindow : S:=PHelpWindow(P)^.GetTitle(MaxLen);
|
|
hcHelpWindow : S:=PHelpWindow(P)^.GetTitle(MaxLen);
|
|
@@ -164,6 +167,7 @@ begin
|
|
S:=PWindow(P)^.GetTitle(MaxLen);
|
|
S:=PWindow(P)^.GetTitle(MaxLen);
|
|
else S:='???? - '+PWindow(P)^.GetTitle(MaxLen);
|
|
else S:='???? - '+PWindow(P)^.GetTitle(MaxLen);
|
|
end;
|
|
end;
|
|
|
|
+ MaxLen:=savMaxLen;
|
|
if PWindow(P)^.Number<>0 then
|
|
if PWindow(P)^.Number<>0 then
|
|
S:=S+'('+IntToStr(PWindow(P)^.Number)+')';
|
|
S:=S+'('+IntToStr(PWindow(P)^.Number)+')';
|
|
if P^.GetState(sfVisible) then S:=' '+S else
|
|
if P^.GetState(sfVisible) then S:=' '+S else
|