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 » ArrayCtrl, HeaderCtrl & GridCtrl » Selection changes before LostFocus() is called
Re: Selection changes before LostFocus() is called [message #13234 is a reply to message #13226] Mon, 24 December 2007 00:32 Go to previous messageGo to previous message
loki is currently offline  loki
Messages: 36
Registered: October 2007
Member
Yeah. I am getting better. Very Happy

This one should fix it. But please have a look on it.

void ArrayCtrl::DoPoint(Point p, bool dosel) {
	if(!HasFocusDeep())
		SetWantFocus();
	
	p.y += sb;
	if(p.y >= GetTotalCy() && IsAppendLine())
		KillCursor();
	clickpos.y = GetLineAt(p.y);
	if(!IsNull(clickpos.y))
		SetCursor0(clickpos.y, dosel);
	else
	if(IsCursor())
		AcceptRow();
}


Tomorrow I will check the one when in RowEdit-Mode.

greetings
loki

[Updated on: Mon, 24 December 2007 00:37]

Report message to a moderator

 
Read Message icon5.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: mouse-event on arrayctrl-header
Next Topic: ArrayCtrl sorting
Goto Forum:
  


Current Time: Wed May 08 09:42:01 CEST 2024

Total time taken to generate the page: 0.01916 seconds