|
-
Dec 24th, 2001, 10:02 AM
#1
Thread Starter
New Member
How can I change the scrollbar color?
How can I change the scrollbar color?
-
Dec 24th, 2001, 12:41 PM
#2
Frenzied Member
-
Dec 24th, 2001, 12:53 PM
#3
scroll bar and progress bar is not the same Jester.
-
Dec 24th, 2001, 12:56 PM
#4
Member
He said scrollbar.
I believe the only way would be to subclass it. I don't really know how, but I was going to try sometime soon. If I do, I'll post it.
-
Dec 24th, 2001, 01:01 PM
#5
Frenzied Member
I'm sorry Its christmas eve man I'm allowed to be illiterate today
-
Dec 24th, 2001, 01:17 PM
#6
You can not change the color of scroll bar.
-
Dec 24th, 2001, 01:23 PM
#7
Member
-
Dec 24th, 2001, 01:24 PM
#8
vcv I know you can do it with html but we are talking about VB here.
And instead of a "Yes" give the answer......
-
Dec 24th, 2001, 01:29 PM
#9
Member
I know we're talking about VB.
I haven't attempted it, but I will sometime this week.
-
Dec 24th, 2001, 01:32 PM
#10
I do not see how you can do that because no api who can do that and you can not change the property of the scrollbar... maybe some one have made a ocx but I doubt.
-
Dec 24th, 2001, 04:48 PM
#11
Member
-
Dec 24th, 2001, 04:49 PM
#12
Well I do not understand what is SubClassing... Can you tell me what is it and how to use it ?
-
Dec 24th, 2001, 05:22 PM
#13
Member
Use SetWindowLong to specify the address of new Window Procedure via the AddressOf operator. The new procedure (function in VB) must have certain parameters. hWnd, uMsg, wParam, lParam. I think that's the order too... In the function, you handle the messages yourself...or at least the ones you can to behave differently. Like you can only have WM_SIZE, and then use CallWindowProc with the old procedure address (which you should store from the return value of the call to SetWindowLong), and parameters to let windows handle the rest of the stuff.
For scrollbars, you may handle.. WM_DRAWITEM and WM_MEASUREITEM to draw different colors. That's how you change the appearance of menus at least.
-
Dec 24th, 2001, 06:26 PM
#14
Fanatic Member
hmmm i know someone who has written a custom control. If i can find it i will put it on this topic. I don't know if it uses colours though, it could be modified
-
Dec 24th, 2001, 06:34 PM
#15
PowerPoster
-
Dec 25th, 2001, 07:56 AM
#16
Thread Starter
New Member
I found a solution here
http://www.vb-world.net/tips/tip8.html
The problem is that the colour then changes for all the application.
-
Dec 25th, 2001, 08:06 AM
#17
Thread Starter
New Member
If we find a solution for the scrollbar, we can probably use it for controls like the TabStrip too.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|