Forum > LCL

TTrackBar flickering

(1/1)

fcu:
Hi
i've found that TtrackBar is the only component that still flickering while resizing the form , and all the components are rendered ok , so are there any workaround for this visual glitch

i am using lazarus 2.2 o, windows7 32bits

dsiders:

--- Quote from: fcu on January 19, 2022, 05:41:56 pm ---Hi
i've found that TtrackBar is the only component that still flickering while resizing the form , and all the components are rendered ok , so are there any workaround for this visual glitch

i am using lazarus 2.2 o, windows7 32bits

--- End quote ---

The flickering is not present using Lazarus 2.2.0 or 2.3.0 (git main) on Windows 8.1.

wp:
I can not confirm on Win 11 (Laz/main), but I do see the issue on Win 7. It can be fixed for me by adding the csParentBackground to the trackbar's ControlStyle:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.FormCreate(Sender: TObject);begin  Trackbar1.ControlStyle := Trackbar1.ControlStyle + [csParentbackground];end;

fcu:

--- Quote from: wp on January 19, 2022, 07:15:39 pm ---I can not confirm on Win 11 (Laz/main), but I do see the issue on Win 7. It can be fixed for me by adding the csParentBackground to the trackbar's ControlStyle:

--- Code: Pascal  [+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i < x.length; i++) { x[i].style.maxHeight='none'; x[i].style.height = Math.min(x[i].clientHeight+15,306)+'px'; x[i].style.resize = "vertical";}};} ---procedure TForm1.FormCreate(Sender: TObject);begin  Trackbar1.ControlStyle := Trackbar1.ControlStyle + [csParentbackground];end;
--- End quote ---

thanks wp , it works
i hope this would added to lazarus source code

trev:

--- Quote from: fcu on January 19, 2022, 07:59:11 pm ---i hope this would added to lazarus source code
--- End quote ---

In that case you will need to lodge an issue in the bugtracker.

Navigation

[0] Message Index

Go to full version