Forum > LCL

Progress bar operated by the mouse wheel

(1/1)

Pe3s:
 Hello, how can I make the progress bar show the status every 5 percent.  from zero to one hundred

winni:
Hi!


--- 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";}};} ---var percent: integer;.....if percent mod 5 = 0 then Progressbar1.position := percent;

Winni

Navigation

[0] Message Index

Go to full version