mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-07 15:03:35 +02:00
IDE: debugging
git-svn-id: trunk@37477 -
This commit is contained in:
parent
ff6ee10d04
commit
322d349d17
@ -774,6 +774,7 @@ var
|
|||||||
DrawText(Canvas.Handle,@Line[LastTokenEnd],TokenEnd-LastTokenEnd,TokenRect,
|
DrawText(Canvas.Handle,@Line[LastTokenEnd],TokenEnd-LastTokenEnd,TokenRect,
|
||||||
DT_SINGLELINE+DT_CALCRECT+DT_NOCLIP);
|
DT_SINGLELINE+DT_CALCRECT+DT_NOCLIP);
|
||||||
TokenSize:=Point(TokenRect.Right,TokenRect.Bottom);
|
TokenSize:=Point(TokenRect.Right,TokenRect.Bottom);
|
||||||
|
//DebugLn(['DrawHint Draw="',Draw,'" Token="',copy(Line,TokenStart,TokenEnd-TokenStart),'" TokenSize=',dbgs(TokenSize)]);
|
||||||
|
|
||||||
if (LineHeight>0) and (TokenPos.X+TokenRect.Right>ATextRect.Right) then
|
if (LineHeight>0) and (TokenPos.X+TokenRect.Right>ATextRect.Right) then
|
||||||
begin
|
begin
|
||||||
@ -821,6 +822,7 @@ var
|
|||||||
Item.CopyAllButton.SetBounds(AHintRect.Right-RightSpace-1,y,FBtnWidth,FBtnWidth);
|
Item.CopyAllButton.SetBounds(AHintRect.Right-RightSpace-1,y,FBtnWidth,FBtnWidth);
|
||||||
Item.CopyAllButton.Visible:=true;
|
Item.CopyAllButton.Visible:=true;
|
||||||
end;
|
end;
|
||||||
|
//debugln(['DrawHint ',y,' Line="',dbgstr(Line),'" LineHeight=',LineHeight,' ']);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
var
|
var
|
||||||
@ -860,7 +862,6 @@ begin
|
|||||||
if Draw and (NewMaxHeight>=MaxHeight) then break;
|
if Draw and (NewMaxHeight>=MaxHeight) then break;
|
||||||
CurHintRect:=Rect(0,NewMaxHeight,MaxWidth,MaxHeight);
|
CurHintRect:=Rect(0,NewMaxHeight,MaxWidth,MaxHeight);
|
||||||
DrawHint(i,CurHintRect);
|
DrawHint(i,CurHintRect);
|
||||||
//DebugLn('TCodeContextFrm.DrawHints i=',dbgs(i),' CurTextRect=',dbgs(CurTextRect),' CurRect=',dbgs(CurRect),' s="',s,'"');
|
|
||||||
if CurHintRect.Right>NewMaxWidth then
|
if CurHintRect.Right>NewMaxWidth then
|
||||||
NewMaxWidth:=CurHintRect.Right;
|
NewMaxWidth:=CurHintRect.Right;
|
||||||
NewMaxHeight:=CurHintRect.Bottom;
|
NewMaxHeight:=CurHintRect.Bottom;
|
||||||
|
Loading…
Reference in New Issue
Block a user