473,406 Members | 2,390 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,406 software developers and data experts.

Listview ScrollBar BIGGER -

since i couldnt find anyway to scroll a listview having disabled the
scrollbars, i am left with no choice but to make the current scrollers
bigger
any leads as to which beast i am up against for making the scrollers just
bigger?

Kovan,
Nov 15 '05 #1
6 8688
"Kovan A." <fa**@fake.com> wrote in message
news:v_********************@golden.net...
since i couldnt find anyway to scroll a listview having disabled the
scrollbars, i am left with no choice but to make the current scrollers
bigger
any leads as to which beast i am up against for making the scrollers just
bigger?

Kovan,


In the years I've worked with windows forms, I've seen the question of
customizing scrollbars for a control asked again and again, and I've yet to
see a good answer. Neither through the framework nor with some kind of
sendmessage call. Strange that this has been overlooked.

The best you will get is a recommendation to change the default
scrollbar size in the control panel.

Sorry!

Erik
Nov 15 '05 #2
"Kovan A." <fa**@fake.com> wrote in message
news:v_********************@golden.net...
since i couldnt find anyway to scroll a listview having disabled the
scrollbars, i am left with no choice but to make the current scrollers
bigger
any leads as to which beast i am up against for making the scrollers just
bigger?

Kovan,


OK, I lied. To satisfy my own curiosity, I looked around a bit and
found this:

http://www.codeproject.com/miscctrl/resizescrollbar.asp

You could take his code and make an ActiveX wrapper from his CXComboList
class. This may be more effort than it's worth, but there you go.

Erik
Nov 15 '05 #3
Not sure which scrollbar you are trying to replace since I can't go back and get
your original post,
but there are some hacks you might use. Just make sure to disable the scrollbar
and then use the following
concepts.

1. Use GetItemAt specifying the bottom of the ListView's client area.
2. EnsureVisible one item further down than is returned by GetItemAt.

or

1. Use GetItemBounds
2. Calculate an approximate number of visible items given the visible region.
3. Use EnsureVisible using TopItem + some offset greater than the approximate
number of visible items.

or

Pump some messages to simulate the scroll. These would be WM_SCROLL messages.
Since I would actually
like scrollable control of many of the WinForms controls, I might make a small
scroll library for working with
scrollbars and handling scrollable regions. Would be a couple of days though,
so I'd try one of the above hacks.
--
Justin Rogers
DigiTec Web Consultants, LLC.
Blog: http://weblogs.asp.net/justin_rogers

"Erik Frey" <er*******@hotmail.com> wrote in message
news:u6**************@TK2MSFTNGP11.phx.gbl...
"Kovan A." <fa**@fake.com> wrote in message
news:v_********************@golden.net...
since i couldnt find anyway to scroll a listview having disabled the
scrollbars, i am left with no choice but to make the current scrollers
bigger
any leads as to which beast i am up against for making the scrollers just
bigger?

Kovan,


OK, I lied. To satisfy my own curiosity, I looked around a bit and
found this:

http://www.codeproject.com/miscctrl/resizescrollbar.asp

You could take his code and make an ActiveX wrapper from his CXComboList
class. This may be more effort than it's worth, but there you go.

Erik

Nov 15 '05 #4
"Erik Frey" <er*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Kovan A." <fa**@fake.com> wrote in message
news:v_********************@golden.net...
In the years I've worked with windows forms, I've seen the question of
customizing scrollbars for a control asked again and again, and I've yet to see a good answer. Neither through the framework nor with some kind of
sendmessage call. Strange that this has been overlooked.


Not strange at all, changing the appearence of common GUI controls is the
most annoying thing a programmer can do. It shoul be prosecuted to the
greatest extent possible under criminal law (I've always wanted to write
that line). Well, okay, animation that you cannot put off is even worse but
it take the same kind of programmer. If you ever figure out how to do it,
don't! The only descent thing to do is to follow whatever desktop scheme is
active and any serious development environment will do just that by default.
The appearence of common GUI controls is not yours, if you touch it your
hands should be slapped real hard... wel, you get my point.

Martin.
Nov 15 '05 #5
"Martin Maat" <du***@somewhere.nl> wrote in message
news:10*************@corp.supernews.com...
Not strange at all, changing the appearence of common GUI controls is the
most annoying thing a programmer can do. It shoul be prosecuted to the
greatest extent possible under criminal law (I've always wanted to write
that line). Well, okay, animation that you cannot put off is even worse but it take the same kind of programmer. If you ever figure out how to do it,
don't! The only descent thing to do is to follow whatever desktop scheme is active and any serious development environment will do just that by default. The appearence of common GUI controls is not yours, if you touch it your
hands should be slapped real hard... wel, you get my point.

Martin.


Generally, I would agree with your idealism, but MS should still provide
programmers with a way to break the rules. Without struggling too hard, I
can think of a number of applications (touch-screen inventory, reviewing
medical records, etc) that could benefit from oversized scroll-bars, without
forcing the rest of the system to follow the same scheme.

Believe it or not, it is possible that MS, in all their wisdom, might
actually miss out on an important design concept within their standards
:)

So we should be allowed to break them.

Erik
Nov 15 '05 #6
"Erik Frey" <er*******@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
"Martin Maat" <du***@somewhere.nl> wrote in message
news:10*************@corp.supernews.com...
Not strange at all, changing the appearence of common GUI controls is the most annoying thing a programmer can do. It shoul be prosecuted to the
greatest extent possible under criminal law (I've always wanted to write
that line). Well, okay, animation that you cannot put off is even worse
but it take the same kind of programmer. If you ever figure out how to do it, don't! The only descent thing to do is to follow whatever desktop scheme is active and any serious development environment will do just that by
default. The appearence of common GUI controls is not yours, if you
touch it your hands should be slapped real hard... wel, you get my

point.
Generally, I would agree with your idealism, but MS should still provide
programmers with a way to break the rules.
They do. Far too often in many people's opinion :-). Most of the Microsoft
bashing originates from providing the customers what they want.
Without struggling too hard, I can think of a number of
applications (touch-screen inventory, reviewing medical
records, etc)


Okay, but it would be stretching the platform. The Windows GUI was not
designed for touch screens so it would require some enhancements or
extensions or something completely new and those are being developed as we
speak (ink for tablet PC's for instance). While it isn't there yet and you
need it I would prefere a custom control over a mutulated standard control.

I agree that flexibility, making things easy to achieve, is basically a good
thing but the result is often too annoying. The fact that "any idiot can
make a GUI application" using this or that tool usually results in a lot of
idiots actually doing just that :-).

Martin.
Nov 15 '05 #7

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

Similar topics

1
by: Grei | last post by:
how to manipulate ListView scrollbar? let's say i want to move Horizontal/Vertical scroll to some position. Also i need to read this position.
1
by: Grei | last post by:
how to manipulate ListView scrollbar? let's say i want to move Horizontal/Vertical scroll to some position. Also i need to read this position.
0
by: Grei | last post by:
how to manipulate ListView scrollbar? let's say i want to move Horizontal/Vertical scroll to some position. Also i need to read this position.
1
by: cyshao | last post by:
How to control the scroolbar.location of ListView? I have a ListView with many items. I want to locate ListView scrollBar to bottom, top, or some item. How can I do that ? Thanks Charles...
0
by: AUGiS | last post by:
Hi, I need to set and get position of scrollbar in listview. I understand that I must use GetScrollInfo and SetScrollInfo api functions, but I'm having some problems with interop.. Maybe...
2
by: | last post by:
Hi All, How can I get to scroll bars of a listview, I am trying to sync two listviews so I need to overload one of the listview, How can I achieve this ? Thank You.
0
by: Jason | last post by:
I have a list of user inputed stuff, that may or may not need a verticle scrollbar. I would like the scrollbar to appear at all times, even if there are not enough items to require a scrollbar. ...
0
by: jiggsroger | last post by:
Hello there! I am trying to build an application here which I have to produce for my examination in a few days. A part of the appearance of the project requires me to use two listviews. The working...
0
by: lazzypink | last post by:
Hi guys! May i know how to use HScrollBar to control listview scrollbar? thanks!
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.