mirror of
https://github.com/HeidiSQL/HeidiSQL.git
synced 2025-08-06 18:24:26 +08:00
Get latest bugfixes for VirtualTrees component, especially this one: https://github.com/JAM-Software/Virtual-TreeView/issues/975
This commit is contained in:
@ -5472,6 +5472,7 @@ begin
|
|||||||
if (Node = nil) or (Tree.FHintMode <> hmToolTip) then
|
if (Node = nil) or (Tree.FHintMode <> hmToolTip) then
|
||||||
begin
|
begin
|
||||||
Canvas.Font := Screen.HintFont;
|
Canvas.Font := Screen.HintFont;
|
||||||
|
Canvas.Font.Height := Tree.ScaledPixels(Canvas.Font.Height);
|
||||||
Y := 2;
|
Y := 2;
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
@ -5602,7 +5603,10 @@ begin
|
|||||||
ChangeBidiModeAlignment(Alignment);
|
ChangeBidiModeAlignment(Alignment);
|
||||||
|
|
||||||
if (Node = nil) or (Tree.FHintMode <> hmToolTip) then
|
if (Node = nil) or (Tree.FHintMode <> hmToolTip) then
|
||||||
Canvas.Font := Screen.HintFont
|
begin
|
||||||
|
Canvas.Font := Screen.HintFont;
|
||||||
|
Canvas.Font.Height := Tree.ScaledPixels(Canvas.Font.Height);
|
||||||
|
end
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
Canvas.Font := Tree.Font;
|
Canvas.Font := Tree.Font;
|
||||||
@ -11838,7 +11842,7 @@ function TVTColors.GetColor(const Index: TVTColorEnum): TColor;
|
|||||||
begin
|
begin
|
||||||
// Only try to fetch the color via StyleServices if theses are enabled
|
// Only try to fetch the color via StyleServices if theses are enabled
|
||||||
// Return default/user defined color otherwise
|
// Return default/user defined color otherwise
|
||||||
if FOwner.VclStyleEnabled and not StyleServices.IsSystemStyle then
|
if FOwner.VclStyleEnabled then
|
||||||
begin
|
begin
|
||||||
// If the ElementDetails are not defined, fall back to the SystemColor
|
// If the ElementDetails are not defined, fall back to the SystemColor
|
||||||
case Index of
|
case Index of
|
||||||
@ -25593,7 +25597,7 @@ procedure TBaseVirtualTree.VclStyleChanged;
|
|||||||
// Updates the member FVclStyleEnabled, should be called initially and when the VCL style changes
|
// Updates the member FVclStyleEnabled, should be called initially and when the VCL style changes
|
||||||
|
|
||||||
begin
|
begin
|
||||||
FVclStyleEnabled := StyleServices.Enabled and not StyleServices.IsSystemStyle;
|
FVclStyleEnabled := StyleServices.Enabled and not StyleServices.IsSystemStyle and not (csDesigning in ComponentState);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
//----------------------------------------------------------------------------------------------------------------------
|
//----------------------------------------------------------------------------------------------------------------------
|
||||||
|
Reference in New Issue
Block a user