[Solved] Why doesn't ScrollBar work when Visible is turned off? lazarus / 21-General ---------------------------------------------------------------------- aydın · 2022-11-25 18:10 Hi Everyone. Since I couldn't customize the original ScrollBar, I decided to make my own scrollbar. It works if ScrollBox.VertScrollBar.Visible is on, But it won't work if Visible is turned off. How can I fix? ---------------------------------------------------------------------- jamie · 2022-11-25 18:21 are you trying to gain the functionality of the scrollbar without visible view of it? Try setting the WIDTH := 0; ---------------------------------------------------------------------- 440bx · 2022-11-25 18:30 if you have a simple project that reproduces the problem, you should post it as it will be helpful to determine what is going wrong. ---------------------------------------------------------------------- jamie · 2022-11-25 19:13 Maybe we would like to know the Widget too, because there could be a bug in that. looking at his example it does not exactly look like a MS-windows screen. ---------------------------------------------------------------------- aydın · 2022-11-25 19:37 Quote from: jamie on November 25, 2022, 07:21:03 pmTry setting the WIDTH := 0; How can I do this in ScrollBox's own ScrollBar. ---------------------------------------------------------------------- aydın · 2022-11-25 19:49 Quote from: 440bx on November 25, 2022, 07:30:00 pmif you have a simple project that reproduces the problem, you should post it as it will be helpful to determine what is going wrong. My own ScrollBar changes ScrollBox.VertScrollBar.Position when button is moved. And I also use BGRA Packages. ---------------------------------------------------------------------- jamie · 2022-11-25 22:55 position your own scroll bar over the scrollbox's scrollbar and monitor the scroll box visible scrollbar so that you can also hide yours too.  You will need to monitor the scrollbox's position, size etc to keep yours in sync.  It would be much easier if you would just make a custom scroll box of your own starting with a TPanel for the contents and attached the control to the side. ---------------------------------------------------------------------- aydın · 2022-11-26 07:34 A big thanks you to jamie and 440bx. It works very well.