Scrollbar Width/Size lazarus / 31-LCL ---------------------------------------------------------------------- ahiggins · 2015-03-24 17:19 Hi, I'm working on a application that will run on a Windows 8.1 touch screen device only, the problem I have is scroll bars, they are just not wide enough when users are using their fingers. Is there an easy way to adjust the scrollbar width on say a TListbox? any help will be much appreciated. ---------------------------------------------------------------------- Never · 2015-03-24 18:31 The user can make this change from the display settings .... IMHO don't change it .... but if you insist AFAIK TNonClientMetrics.iScrollWidth with SystemParametersInfo  SPI_SETNONCLIENTMETRICS and SPI_GETNONCLIENTMETRICS  will change all scrollbars in your system ex: Code: [Select]loc_SBInfo:TNonCLientMetrics; loc_NewWidth:integer; begin loc_NewWidth:=32; loc_SBInfo.cbSize:=SizeOf(loc_SBInfo); SystemParametersInfo(SPI_GetNonClientMetrics,0,@loc_SBInfo,0);<---get current values loc_SBInfo.iScrollWidth:=loc_NewWidth; <----Do not forget to store the original value so you can restore it later and change width SystemParametersInfo(SPI_SetNonClientMetrics,0,@loc_SBInfo,SPIF_SENDWI NINICHANGE);<----set new values end;you can use onactivate to change  the width  and ondeactivate to restore the original value. if you want to change only one control then handle WM_NCPAINT and WM_NCHITTEST or use your custom TScrollBar over the existing one ---------------------------------------------------------------------- ahiggins · 2015-03-24 22:07 Never, Thanks for you help, I shall give it a go. the application is still at the proof of concept stage so changing the scrollbar width system wide is not that big of an issue at the moment, but I think I will take on board your suggestion regarding custom TScrollbar going forward, but I dare say I will also need help with that too.  many thanks