Re: Change the scroll bars


[ Related Articles and Replies ] [ Post Followup ] [ DelphiLand Discussion Forum ]

Posted by webmaster Guido on January 14, 2002 at 14:18:59:

In Reply to: Change the scroll bars posted by Iba on January 13, 2002 at 19:08:33:

: How do I change the color and style of the scrooll bar in a TListBox?
----

You have no access to the scrollbars, because the TListbox component has no "property" to accesses the scrollbars. In fact, a TListbox component is a "wrapper" around a Windows listbox control; Delphi does not automatically add a vertical scrollbar, this is done by Windows.

So if you want to change the scrollbar, you have to do this with direct calls to the API (Windows' Application Programmer's Interface). But are there any API-functions that access the scrollbar(s) of a control? This info is not in the Delphi Help-files; if it exists, it's somewhere in the (very large and complicated) Windows API documentation.

I know that there is a way of globally setting the appearance of Windows elements with the API, such as scrollbars, title bars, and so on... for ALL the windows, but I doubt if it is possible for one particular control.


Related Articles and Replies:


[ Related Articles and Replies ] [ Post Followup ] [ DelphiLand Discussion Forum ]