mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Issue #1482: make height of tree nodes slightly higher for better readability, activate OnStart/OnEndOperation
This commit is contained in:
@ -1378,7 +1378,7 @@ begin
|
||||
end;
|
||||
VT.EndUpdate;
|
||||
// Disable hottracking in non-Vista mode, looks ugly in XP, but nice in Vista
|
||||
if toUseExplorerTheme in VT.TreeOptions.PaintOptions then
|
||||
if (toUseExplorerTheme in VT.TreeOptions.PaintOptions) {$IfDef WINDOWS} and true {$EndIf} then
|
||||
VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions + [toHotTrack]
|
||||
else
|
||||
VT.TreeOptions.PaintOptions := VT.TreeOptions.PaintOptions - [toHotTrack];
|
||||
@ -1394,14 +1394,14 @@ begin
|
||||
// Apply case insensitive incremental search event
|
||||
if VT.IncrementalSearch <> laz.VirtualTrees.isNone then
|
||||
VT.OnIncrementalSearch := Mainform.AnyGridIncrementalSearch;
|
||||
//VT.OnStartOperation := Mainform.AnyGridStartOperation;
|
||||
//VT.OnEndOperation := Mainform.AnyGridEndOperation;
|
||||
VT.OnStartOperation := Mainform.AnyGridStartOperation;
|
||||
VT.OnEndOperation := Mainform.AnyGridEndOperation;
|
||||
end;
|
||||
|
||||
|
||||
function GetTextHeight(Font: TFont): Integer;
|
||||
begin
|
||||
Result := Font.GetTextHeight('<27>y');
|
||||
Result := MainForm.Canvas.TextHeight('<27>y');
|
||||
end;
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user