473,387 Members | 3,781 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,387 software developers and data experts.

The problem with scrol bar in list control

I have application which displays dialog containing CListCtrl control.
The OnTimer message handler updates values in this list control.
In case if there are more items then visible area of list control can
display the scroll bar appears.

If user clicks on the scroll bar arrow, the OnTimer message handler
removes all items from list control and populate it again with new range
of visible items and then updates values as usually.

The problem I experience is that if user clicks fast enough on the
scroll bar arrow, the applications sometimes interpret it as double click
event in list control, which has undesirable effect for us.

The problem as I understand it, is that when OnTimer method removes all
items and repopulate list control the scroll bars disappear for the very
short time. This is not visible to user, the control just blinks, but user
thinks that he clicks on scroll bar arrows while he actually clicks inside
list control which is interpreted as double click in client area of list
control.

Can anyone suggest solution how I can overcome this problem?
Thanks
Nov 17 '05 #1
1 1220
>The problem I experience is that if user clicks fast enough on the
scroll bar arrow, the applications sometimes interpret it as double click
event in list control, which has undesirable effect for us.

The problem as I understand it, is that when OnTimer method removes all
items and repopulate list control the scroll bars disappear for the very
short time. This is not visible to user, the control just blinks, but user
thinks that he clicks on scroll bar arrows while he actually clicks inside
list control which is interpreted as double click in client area of list
control.

Can anyone suggest solution how I can overcome this problem?


1. Try disabling the control while it's being repopulated.

If that doesn't work, I'd consider this:

2. Set a flag while the control is in this state and check it in the
handler for the double click event so you don't have the undesirable
effect.

Dave
--
MVP VC++ FAQ: http://www.mvps.org/vcfaq
Nov 17 '05 #2

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

Similar topics

10
by: BBFrost | last post by:
We just recently moved one of our major c# apps from VS Net 2002 to VS Net 2003. At first things were looking ok, now problems are starting to appear. So far ... (1) ...
6
by: Robin Bonin | last post by:
In my user contol I am creating a set of dropdownlists. Each list is created based on input from the other lists. The problem I am having is setting the selected index on the lists. If someone...
0
by: michael | last post by:
Hi. I have a problem using the CollectioEditor. In my custom control I have a public property that returns ItemList. ItemList is inherited from CollectionBase and contains very simple items...
3
by: http://www.visual-basic-data-mining.net/forum | last post by:
I have the following problem. My asp.net page has one html list box control and I made that as "RUN AS SERVER" so that I could access it in client side script as well as server side script. And also...
1
by: Goffin | last post by:
Hey everybody, I have an asp.net datagrid on my page with a div round it. This div has a style property overflow:scrolling and a width and a height. So no I have a scrollbar in Internet...
2
by: Doug Carter | last post by:
I'm using a horizontal scroll bar control to represent teh default values of MIn 0 to Max 100. I assign the current value of the horizontal control to a label control.Text string but when the...
2
by: MH-2004 | last post by:
Hi All, I have a MDI form application. In a child form I placed a bunch of NumericUpDown controls. The problem happens when I use the mouse scroll button, the value in the NumericUpdown has...
2
by: StevenChiasson | last post by:
For the record, not a student, just someone attempting to learn C++. Anyway, the problem I'm having right now is the member function detAddress, of object controller. This is more or less, your...
5
matheussousuke
by: matheussousuke | last post by:
Hello, I'm using tiny MCE plugin on my oscommerce and it is inserting my website URL when I use insert image function in the emails. The goal is: Make it send the email with the URL...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
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?
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...
0
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...
0
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...

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.