Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to next message
Tom1
Messages: 635
Registered: March 2007
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 #22987 is a reply to message #22971] Fri, 04 September 2009 14:52 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11993
Registered: November 2005
Ultimate Member
Thank you for reporting. It was faulty with keyboard Up/Down keys too Smile

Should be fixed now, please check.

Mirek
Re: DropList + AddSeparator + mouse wheel problem [message #23005 is a reply to message #22987] Sun, 06 September 2009 21:12 Go to previous messageGo to next message
Tom1
Messages: 635
Registered: March 2007
Contributor
Hi Mirek,

Thanks for fixing it. There still appears to be another (related?) problem within the droplist. The arrow keys are not able to cross separators within the actual list.

Thanks and regards,

Tom
Re: DropList + AddSeparator + mouse wheel problem [message #23007 is a reply to message #23005] Mon, 07 September 2009 08:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11993
Registered: November 2005
Ultimate Member
Tom1 wrote on Sun, 06 September 2009 15:12

Hi Mirek,

Thanks for fixing it. There still appears to be another (related?) problem within the droplist. The arrow keys are not able to cross separators within the actual list.

Thanks and regards,

Tom


For me, it works in fixed version. Have you tested with fix?

(And yes, I had to fix this too Smile

If there still is a problem, please prepare a testcase.

Mirek
Re: DropList + AddSeparator + mouse wheel problem [message #23008 is a reply to message #23007] Mon, 07 September 2009 09:08 Go to previous messageGo to next message
Tom1
Messages: 635
Registered: March 2007
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

Re: DropList + AddSeparator + mouse wheel problem [message #23009 is a reply to message #23008] Mon, 07 September 2009 10:04 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11993
Registered: November 2005
Ultimate Member
Ah, dropped Smile

Mirek
Re: DropList + AddSeparator + mouse wheel problem [message #23010 is a reply to message #23009] Mon, 07 September 2009 10:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11993
Registered: November 2005
Ultimate Member
Hopefully fixed.

Mirek
Re: DropList + AddSeparator + mouse wheel problem [message #23013 is a reply to message #23010] Mon, 07 September 2009 11:45 Go to previous messageGo to next message
Tom1
Messages: 635
Registered: March 2007
Contributor
Mirek,

It works now!

BTW: What is the keyboard shortcut for dropping the dropdown list? (For those among us who hate the mouse...)

Thanks again,

Tom
Re: DropList + AddSeparator + mouse wheel problem [message #23014 is a reply to message #23013] Mon, 07 September 2009 13:20 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 11993
Registered: November 2005
Ultimate Member
Alt-Down. Same as in Windows.
Re: DropList + AddSeparator + mouse wheel problem [message #23015 is a reply to message #23014] Mon, 07 September 2009 14:15 Go to previous message
Tom1
Messages: 635
Registered: March 2007
Contributor
Thanks! (One learns something new every day!!!)

// Tom
Previous Topic: Strange behavior of Point in watches
Next Topic: MenuBar::Execute isn't modal?
Goto Forum:
  


Current Time: Fri Aug 23 07:01:45 CEST 2019

Total time taken to generate the page: 0.00840 seconds