472,805 Members | 1,458 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,805 software developers and data experts.

Good scroll bar control

I would like to ad a custom scroll bar control to my app that has a
customizable and "flat" look to it (not the normal VB look). Does anyone
have any ideas on where to find a good one?
Jul 17 '05 #1
12 12640
Anyone? This is also for VB 6.0.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:TGYJc.8047$%p4.2152@okepread04...
I would like to ad a custom scroll bar control to my app that has a
customizable and "flat" look to it (not the normal VB look). Does anyone
have any ideas on where to find a good one?

Jul 17 '05 #2
From the sdk:

Flat Scroll Bars

Microsoft® Internet Explorer Version 4.0 introduced a new visual
technology called flat scroll bars. Functionally, flat scroll bars
behave just like standard scroll bars. The difference is that you can
customize their appearance to a greater extent than standard scroll
bars.

Note Flat scroll bar APIs are implemented in version 4.71 and later of
Comctl32.dll.

In other words: Flat scroll bars are part of the os, if you have ie
installed.

Hope it helps,
Joe
"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message news:<MriMc.13358$%p4.2005@okepread04>...
Anyone? This is also for VB 6.0.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:TGYJc.8047$%p4.2152@okepread04...
I would like to ad a custom scroll bar control to my app that has a
customizable and "flat" look to it (not the normal VB look). Does anyone
have any ideas on where to find a good one?

Jul 17 '05 #3
Yeah, the problem is you can't customize the color and it doesn't support
the mouse wheel. I'm looking to have that functionality as well.

"joe herzog" <jh*****@csi.com> wrote in message
news:3d**************************@posting.google.c om...
From the sdk:

Flat Scroll Bars

Microsoft® Internet Explorer Version 4.0 introduced a new visual
technology called flat scroll bars. Functionally, flat scroll bars
behave just like standard scroll bars. The difference is that you can
customize their appearance to a greater extent than standard scroll
bars.

Note Flat scroll bar APIs are implemented in version 4.71 and later of
Comctl32.dll.

In other words: Flat scroll bars are part of the os, if you have ie
installed.

Hope it helps,
Joe
"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message

news:<MriMc.13358$%p4.2005@okepread04>...
Anyone? This is also for VB 6.0.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:TGYJc.8047$%p4.2152@okepread04...
I would like to ad a custom scroll bar control to my app that has a
customizable and "flat" look to it (not the normal VB look). Does anyone have any ideas on where to find a good one?

Jul 17 '05 #4
Arlie, why don't you just make your own?

I know that I write ugly code...but it tends to work :-)

Make a Label in your choice of size/colour and just use the MouseMove event
to track its horizontal movement across the form. Draw a rectangle around
the desired area to make it look like a "real" scroll bar. You can then
choose whether you wish to put the arrows at each end of the "control".

I don't the foggiest idea of how to capture the mouse scroll wheel but you
might get somewhere with:
http://www.adit.co.uk/html/mousewheelsupport.html

There are a few other traps that are required in the code below to constrain
the returned values, but it might get you thinking in another direction.
You also seem to have a habit of criticizing responses you receive on this
newsgroup. Make sure that you declare all that you require in your
solution before posting it. It is not nice form to declare someones
solution as unworkable because it does not support colours or a mousewheel
when you did not specify that in the original question.

Make sure that your forms scalemode is set to Twips and the DragMode of your
Label is set to manual.

Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
StartX = X
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
minLeft = 1080
maxRight = 8490

If Button = 1 And Label1.Left >= minLeft And Label1.Left <= maxRight Then
Label1.Left = Label1.Left + X - StartX
End If

If Label1.Left < minLeft Then Label1.Left = minLeft
If Label1.Left > maxRight Then Label1.Left = maxRight
End Sub
Tom
"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:OfYMc.2316$zA4.593@lakeread04...
Yeah, the problem is you can't customize the color and it doesn't support
the mouse wheel. I'm looking to have that functionality as well.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message

news:<MriMc.13358$%p4.2005@okepread04>...
Anyone? This is also for VB 6.0.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:TGYJc.8047$%p4.2152@okepread04...
> I would like to ad a custom scroll bar control to my app that has a
> customizable and "flat" look to it (not the normal VB look). Does anyone > have any ideas on where to find a good one?
>
>


Jul 17 '05 #5
I ended up doing just that using customizable images for the arrows and
middle thumb of the scroll bar. To get around the scroll-mouse issue, I
mapped the handle for the form and captured the scroll message (522) and
manually moved it up or down based on the wParam value. Seems to be working
OK. Thanks for your help though. I was just surprised that there was no good
customizable scroll control (even via subclassing). I looked at the one on
vbaccelerator.com and it left a lot to be desired and was a bit bloated with
ocxs and controls I didn't need.

"Kiteman - Canada" <-d*************@shaw.ca> wrote in message
news:B0fNc.116683$od7.29288@pd7tw3no...
Arlie, why don't you just make your own?

I know that I write ugly code...but it tends to work :-)

Make a Label in your choice of size/colour and just use the MouseMove event to track its horizontal movement across the form. Draw a rectangle around the desired area to make it look like a "real" scroll bar. You can then
choose whether you wish to put the arrows at each end of the "control".

I don't the foggiest idea of how to capture the mouse scroll wheel but you
might get somewhere with:
http://www.adit.co.uk/html/mousewheelsupport.html

There are a few other traps that are required in the code below to constrain the returned values, but it might get you thinking in another direction.
You also seem to have a habit of criticizing responses you receive on this
newsgroup. Make sure that you declare all that you require in your
solution before posting it. It is not nice form to declare someones
solution as unworkable because it does not support colours or a mousewheel
when you did not specify that in the original question.

Make sure that your forms scalemode is set to Twips and the DragMode of your Label is set to manual.

Private Sub Label1_MouseDown(Button As Integer, Shift As Integer, X As
Single, Y As Single)
StartX = X
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
minLeft = 1080
maxRight = 8490

If Button = 1 And Label1.Left >= minLeft And Label1.Left <= maxRight Then
Label1.Left = Label1.Left + X - StartX
End If

If Label1.Left < minLeft Then Label1.Left = minLeft
If Label1.Left > maxRight Then Label1.Left = maxRight
End Sub
Tom
"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:OfYMc.2316$zA4.593@lakeread04...
Yeah, the problem is you can't customize the color and it doesn't support the mouse wheel. I'm looking to have that functionality as well.

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message

news:<MriMc.13358$%p4.2005@okepread04>...
> Anyone? This is also for VB 6.0.
>
> "Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
> news:TGYJc.8047$%p4.2152@okepread04...
> > I would like to ad a custom scroll bar control to my app that has a > > customizable and "flat" look to it (not the normal VB look). Does

anyone
> > have any ideas on where to find a good one?
> >
> >



Jul 17 '05 #6
On Mon, 26 Jul 2004 16:20:55 -0700, "Arlie Rahn"
<ar*******@nospam.cox.net> wrote:
I ended up doing just that using customizable images for the arrows and
middle thumb of the scroll bar. To get around the scroll-mouse issue, I
mapped the handle for the form and captured the scroll message (522) and
manually moved it up or down based on the wParam value. Seems to be working
OK. Thanks for your help though. I was just surprised that there was no good
customizable scroll control (even via subclassing). I looked at the one on
vbaccelerator.com and it left a lot to be desired and was a bit bloated with
ocxs and controls I didn't need.


Have you had a look at the DrawFrameControl API ?

Jul 17 '05 #7

"J French" <er*****@nowhere.com> wrote in message
news:41**************@news.btclick.com...
On Mon, 26 Jul 2004 16:20:55 -0700, "Arlie Rahn"
<ar*******@nospam.cox.net> wrote:
I ended up doing just that using customizable images for the arrows and
middle thumb of the scroll bar. To get around the scroll-mouse issue, I
mapped the handle for the form and captured the scroll message (522) and
manually moved it up or down based on the wParam value. Seems to be workingOK. Thanks for your help though. I was just surprised that there was no goodcustomizable scroll control (even via subclassing). I looked at the one onvbaccelerator.com and it left a lot to be desired and was a bit bloated withocxs and controls I didn't need.


Have you had a look at the DrawFrameControl API ?


No, I haven't. Maybe I'll check that out as well.
Jul 17 '05 #8
On Tue, 27 Jul 2004 06:44:34 -0700, "Arlie Rahn"
<ar*******@nospam.cox.net> wrote:

<snip>
Have you had a look at the DrawFrameControl API ?


No, I haven't. Maybe I'll check that out as well.


I wish I had known about it some six years ago

If you do not have it already get the API Guide frome www.AllAppi.net
you will need to follow the links for 'API List'

Hey guys, why do we not have a simple list of links for the basic
tools ?
Jul 17 '05 #9

"J French" <er*****@nowhere.com> wrote in message
news:41***************@news.btclick.com...
On Tue, 27 Jul 2004 06:44:34 -0700, "Arlie Rahn"
<ar*******@nospam.cox.net> wrote:

<snip>
Have you had a look at the DrawFrameControl API ?
No, I haven't. Maybe I'll check that out as well.


I wish I had known about it some six years ago

If you do not have it already get the API Guide frome www.AllAppi.net
you will need to follow the links for 'API List'

Hey guys, why do we not have a simple list of links for the basic
tools ?


The above link is dead.

Jul 17 '05 #10

"Arlie Rahn" <ar*******@nospam.cox.net> wrote in message
news:mfCNc.16593$%p4.9056@okepread04...
|

| > If you do not have it already get the API Guide frome
www.AllAppi.net
| > you will need to follow the links for 'API List'
| >
| > Hey guys, why do we not have a simple list of links for the basic
| > tools ?
|
| The above link is dead.
| >
| >
|
He meant www.allapi.net
Jul 17 '05 #11

"J French" <er*****@nowhere.com> wrote in message
news:41***************@news.btclick.com...

| Hey guys, why do we not have a simple list of links for the basic
| tools ?
|

It is odd that Rick has that canned list of .Net sites, but we never see
a standard list of VB sites, this being a VB newsgroup and all.

I nominate you for the job. <g>
Jul 17 '05 #12
On Tue, 27 Jul 2004 18:36:48 -0700, "Steve Gerrard"
<no*************@comcast.net> wrote:

<snip>
It is odd that Rick has that canned list of .Net sites, but we never see
a standard list of VB sites, this being a VB newsgroup and all.

I nominate you for the job. <g>


Good idea, here are some from my snippings file:

www.planetsourcecode.com/vb - Source Code/Tutorials
http://abstractvb.com/default.asp - Source Code/Tutorials
http://www.allapi.net/
www.vbtt.com - Visual Basic Tips and Tricks
www.a1vbcode.com - Source Code/Demos
www.vbexplorer.com - Source Code/Demos/Tutorials
http://website.lineone.net/~mattwilkinson
http://visualbasic.about.com/compute...asic/mbody.htm
http://www.vbip.com
http://www.mvps.org/vbnet/code/comct...ookadvtext.htm
http://vbnet.mvps.org/ Randy Birch - new address
http://www.freevbcode.com/ShowCode.Asp?ID=4322
http://www.thescarms.com/vbasic/FolderSpy.asp
homepage http://www.kingsoft-denmark.com/
Tips & Tricks page http://tips.kingsoft-denmark.com/
http://www.mvps.org/emorcillo/
http://www.vbadvance.com
APIViewer 2004
http://www.activevb.de/rubriken/apiv...viewereng.html
http://www.mentalis.org
http://www.vbaccelerator.com

Jul 17 '05 #13

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: VINAY | last post by:
Dear All, The subject line could be bit confusing. So let me explain in details, please have patience. I have developed an ActiveX Control(Combo Box Control) in VB6 for a touch screen...
1
by: JC | last post by:
I'm sure you've all seen the save scroll position from 4 guys from rolla which can be found here > http://aspnet.4guysfromrolla.com/articles/111704-1.aspx BUT try to get that to work AND still be...
7
by: bienwell | last post by:
Hi, I'm using the CheckBoxList control in ASP.NET for Web development. This checkboxlist is bound by the database. If we have more items for this checkbox list, it takes space on the page. I...
4
by: John Dann | last post by:
I have a listview control on a simple vb.net form that's populated programmatically. It is set to scrollable and a scroll bar duly appears. However the scroll bar doesn't allow the bottom rows of...
1
by: edi sol | last post by:
Hi, I am writing a hex edit control from a UserControl. I use drawtext method of the graphics object in the OnPaint. When the text which I draw go out of the visible rectangle of the control I...
6
by: Mike Johnson | last post by:
I have a ListView on a form, I'm displaying the items as a list. The Scroll is set to true. I want to know how can I set the scroll bar to Vertical?
6
by: =?Utf-8?B?U2hhcm9u?= | last post by:
I'm using the VScrollBar and set it as follow: m_vScrollBar.Minimum = -19602; m_vScrollBar.Maximum = 0; m_vScrollBar.SmallChange = 1; m_vScrollBar.LargeChange = 1089; m_vScrollBar.Value =...
2
by: Michael Meckelein | last post by:
I get "Value of '3720' is not valid for 'Value'. 'Value' should be between 'minimum' and 'maximum' exception if I remove rows in a dataGridView while scrolling from the top to the end of the grid...
1
by: David_from_Chicago | last post by:
I am developing an application in Access 2000 (A2K) which has multiple forms and subforms. Until now, all subforms displayed scroll bars properly (according to the subform's property setting). ...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
14
DJRhino1175
by: DJRhino1175 | last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this - If...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth
2
by: DJRhino | last post by:
Was curious if anyone else was having this same issue or not.... I was just Up/Down graded to windows 11 and now my access combo boxes are not acting right. With win 10 I could start typing...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.