U++ framework
Do not panic. Ask here before giving up.

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: Mon Oct 12 15:09:43 GMT+2 2026

Total time taken to generate the page: 0.00905 seconds