473,624 Members | 2,651 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 8717
"Kovan A." <fa**@fake.co m> wrote in message
news:v_******** ************@go lden.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.co m> wrote in message
news:v_******** ************@go lden.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*******@hotm ail.com> wrote in message
news:u6******** ******@TK2MSFTN GP11.phx.gbl...
"Kovan A." <fa**@fake.co m> wrote in message
news:v_******** ************@go lden.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*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
"Kovan A." <fa**@fake.co m> wrote in message
news:v_******** ************@go lden.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***@somewher e.nl> wrote in message
news:10******** *****@corp.supe rnews.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*******@hotm ail.com> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
"Martin Maat" <du***@somewher e.nl> wrote in message
news:10******** *****@corp.supe rnews.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
1241
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
2860
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
1055
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
1341
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 Shao
0
882
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 someone could help me? and another question, is there any way to search for an item in listview? (I mean, not to go with for..next through all list items :) )
2
6912
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
1101
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. Is there an easy way to make the list show the scrollbar that I am missing? Thank you in advance.
0
1027
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 of the project is such that the contents of the listview are compared against each other and the difference is picked from em. That part is handled. Now the issue is that I need to synchronize the listview control's scroll bars so that when listview1...
0
1160
by: lazzypink | last post by:
Hi guys! May i know how to use HScrollBar to control listview scrollbar? thanks!
0
8249
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8179
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8685
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8633
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8348
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8493
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5570
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4187
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1493
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.