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 » DropGrid, DropTree dynamic update.
Re: DropGrid, DropTree dynamic update. [message #32956 is a reply to message #31933] Sat, 25 June 2011 04:10 Go to previous messageGo to previous message
Lance is currently offline  Lance
Messages: 656
Registered: March 2007
Contributor
Update:

The "problem" that you cannot select item and close the DropGrid with Enter key (have to use mouse-left-click at present) actually has to do with the Key virtual function of GridCtrl:

bool GridCtrl::Key(dword key, int)
{
	if(!IsReadOnly())
	switch(key)
	{
		case K_ENTER:
			ClearSelection();
			#ifdef LOG_CALLBACKS
			LGR(2, "WhenEnter()");
			WhenEnter();//<-****THIS LINE****
			#endif


Move the WhenEnter(); line out of #ifdef #endif block will fix the problem.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: GridCtrl paste and WhenAction
Next Topic: ArrayCtrl and FileSel.ExecuteOK
Goto Forum:
  


Current Time: Sun Jul 13 19:59:14 CEST 2025

Total time taken to generate the page: 0.04029 seconds