Home » U++ Library support » U++ Widgets - General questions or Mixed problems » DropList + AddSeparator + mouse wheel problem
DropList + AddSeparator + mouse wheel problem [message #22971] |
Thu, 03 September 2009 12:17  |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
Hi,
When directly scrolling the selection on the DropList's fixed part using the mouse wheel (or with keyboard arrow keys), the current selection position jumps to wrong item when it crosses a separator which is not the first one in the list. It also allows selection of the separator, which it should not.
DropList droplist;
// ...
for(int i=0;i<10;i++){
droplist.Add(i,Format("%d",i));
if(((i+1)%3)==0) droplist.AddSeparator();
}
To see the problem, try to scroll from 0 to 9 and back.
// Tom
|
|
|
|
|
|
Re: DropList + AddSeparator + mouse wheel problem [message #23008 is a reply to message #23007] |
Mon, 07 September 2009 09:08   |
Tom1
Messages: 1303 Registered: March 2007
|
Ultimate Contributor |
|
|
Yes, I tested with the fix.
The initial test case code applies for this one too: Although the wheel and arrow keys both now work on top of the fixed part of the control, the arrow keys can not move the blue list item selection bar on top of the dropped list part when the selection bar encounters a separator.
// Tom
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Mon May 12 03:41:31 CEST 2025
Total time taken to generate the page: 0.03857 seconds
|