TTreeView - Collapse and Expand Images not Alligned
问题 Does anyone know how I can align the collapse/expand images with the center of my icon? Using a white theme they are correct, but in the dark theme, the arrows seem to be bottom-aligned: 回答1: If you're using VCL Style Utils components, then modify UxTheme_TreeView in Vcl.Styles.UxTheme.pas case iPartId of TVP_GLYPH: begin LColor := StyleServices.GetSystemColor(clWindowText); LRect := pRect; LRect.Top := LRect.Top + 1; // <---- here's the change //LRect.Top := LRect.Top + 5; LRect.Left :=