managing ScrollBar

  • Thread starter Thread starter Tomek
  • Start date Start date
T

Tomek

Hi,
I would like to change color of scrollbar (in text box or any others). Is it
possible? How can I do it?
Thanks in advance,
Tomek
 
* "Tomek said:
I would like to change color of scrollbar (in text box or any others). Is it
possible? How can I do it?

You can do that in Windows' display settings dialog.
 
Hi,
Yes but I would like to set it only for my application, not for every
windows.It is possible to set it in IE so I think that it is possible in
forms too.
BR
Tomek
 
Yes but I would like to set it only for my application, not for every
windows.It is possible to set it in IE so I think that it is possible in
forms too.

It would involve subclassing the scrollbar and at least intercepting
WM_CTLCOLORxxx messages. You might want to search for the keyword
"WM_CTLCOLORSCROLLBAR" to get started.
 
Jeff,

* "Jeff Johnson said:
It would involve subclassing the scrollbar and at least intercepting
WM_CTLCOLORxxx messages. You might want to search for the keyword
"WM_CTLCOLORSCROLLBAR" to get started.

This will work, but the result is really ugly when using Windows XP
Visual Styles.
 
This will work, but the result is really ugly when using Windows XP
Visual Styles.

Good point. I forget about styles completely because they're one of the
first things in XP I turn off (right after menu fade effect and hide
navigation indicators until I press the Alt key).
 
Back
Top