473,383 Members | 1,748 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 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 12692
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). ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.