Since I just mentioned the Glow Label component for Delphi, I thought I mention a small problem with the glass effect and components placed on areas, where this effect is applied.
The (usually) black parts of the component are not painted correctly, when leaving all settings on default. You have to set the property DoubleBuffered to True, for correct painting of the components. Therefore, I have created a small routine which just does that. Simply pass along the form as parameter, an it will iterate through all controls and set their DoubleBuffer property to True.
procedure DoubleBufferAll(WinControl: TWinControl); var I: Integer; begin if not (WinControl is TBaseVirtualTree) then WinControl.DoubleBuffered := True; for I := 0 to WinControl.ControlCount - 1 do if WinControl.Controls[I] is TWinControl then DoubleBufferAll(WinControl.Controls[I] as TWinControl); end;
procedure
var
begin
if
not
is
then
for
to
do
as
end
The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.
Theme design by Jelle Druyts