How to make scrollbars wider / larger for delphi, (including scrollbar arrows)

For accessibility purposes, I need to make the scroll bars for all scrollable controls (lists, lists) wider, and the scroll bar arrows larger.

  • How to get scrollbars (knobs) from a scrollable control (ex: TListView)?

  • How to make the scroll bar and arrows wider / larger?

10x for any hints and code ...

+4
source share
2 answers

I'm not sure what you can - you need to change it (and restore it back) for all of Windows.

http://www.greatis.com/delphicb/tips/lib/system-captionfont.html

TNonClientMetrics.iScrollWidth Setting and Reading Property


Edit: I know this solution is rude, but in most cases this is the best you CAN do. If you have a specialized TabletPC application, you usually use only this application at a time, and not others. But almost all Windows applications are not designed to work with such large scroolbars. Therefore, when you need to use OS dialog boxes and other applications, you need to switch it.

There is no better solution than "as long as my touch screen application works with many window scroolbars and then returns it back." We have exactly this application in the real world, so I know what I'm talking about.

Of course, you can write your own grid control (if you have so much time) or use some third-party controls (if you have money and time), but that was not the issue.

+3
source

Availability is something that does not apply to one application, but to the entire system. Therefore, the API is not defined for adjusting elements such as border width, scrollbar size and similar properties of your own controls only for your program. However, you can configure these settings globally in Windows, either using the Accessibility Wizard or by adjusting the fonts, colors, border sizes, and scroll sizes in the Screen Properties applet.

For more information, you should check the Microsoft Availability Page and follow the various links.

Edit: Changing global settings (as the accepted answer suggests) in the interests of your own program is rude to extreme . Keep in mind that this interferes with all other running programs. This may be excusable for a touch-screen system where the controls must be large so that they can be used at all, but in such a system the control sizes would probably have been set correctly.

+6
source

All Articles