mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 05:59:28 +02:00
MG: added persistent hints for main ide bar
git-svn-id: trunk@3607 -
This commit is contained in:
parent
e27b187b18
commit
0d0e5a2574
@ -252,7 +252,7 @@ type
|
||||
GlobalMouseSpeedButton: TSpeedButton;
|
||||
|
||||
// hints. Note/ToDo: hints should be controlled by the lcl, this is a workaround
|
||||
HintTimer1 : TTimer;
|
||||
HintTimer1 : TIdleTimer;
|
||||
HintWindow1 : THintWindow;
|
||||
protected
|
||||
TheCompiler: TCompiler;
|
||||
|
@ -123,6 +123,7 @@ function THintWindow.CalcHintRect(MaxWidth: Integer; const AHint: String;
|
||||
AData: Pointer): TRect;
|
||||
begin
|
||||
Result := Rect(0,0, MaxWidth, ClientHeight);
|
||||
if AHint='' then exit;
|
||||
SelectObject(Canvas.Handle, Canvas.Font.Handle);
|
||||
DrawText(Canvas.Handle, PChar(AHint), Length(AHint), Result, DT_CalcRect or
|
||||
DT_NOPREFIX);
|
||||
|
Loading…
Reference in New Issue
Block a user