[SOLVED]Is it possible to determine the size of the arrow of a ScrollBar? lazarus / 31-LCL ---------------------------------------------------------------------- CM630 · 2013-09-27 13:26 Is it possible to determine the size of the arrow of a ScrollBar? I suppose it depends on OS (theme) settings, so I cannot use a constant. ---------------------------------------------------------------------- typo · 2013-09-27 15:24 The arrow or the bar? ---------------------------------------------------------------------- CM630 · 2013-09-29 05:43 Yes. The scrollbars consist of a slider and two arrows. I need to know the size of the slider itself or the arrows. ---------------------------------------------------------------------- howardpc · 2013-09-29 08:51 On platforms where the arrows are square I think Code: [Select]GetSystemMetrics(SM_CYVSCROLL); GetSystemMetrics(SM_CXHSCROLL); will give you the boundary dimensions of the arrow widget (not the size of the central arrow glyph, if that's what you mean). Needs Code: [Select]uses LCLType, LCLIntf; There may be more sophisticated theme-related metrics available, but someone who understands the inner workings of themes would have to guide you about that. ---------------------------------------------------------------------- CM630 · 2013-09-30 07:17 Thanks, that should it be. I did ShowMessage (IntToStr (GetSystemMetrics(SM_CYVSCROLL))+ '    ' + IntToStr(GetSystemMetrics(SM_CYVSCROLL))); and I got 17   17. Then I changed the system font to LARGE, and I got 19   19. I only wonder if this will work on *nix, I suppose this solution is for Windows only.