| 
 | 
 | 
 
Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » GridCtrl 'Key' modifications / questions 
	
		
		
			| GridCtrl 'Key' modifications / questions [message #10131] | 
			Thu, 21 June 2007 20:37   | 
		 
		
			
				
				
				
					
						  
						kcabobert
						 Messages: 51 Registered: January 2007  Location: USA
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		I am hitting a variety of issues with GridCtrl not passing keys through to its parent.  For example, I often use <Esc> to cancel current form editing operations, or to close a window. 
 
I am thinking about adding 'IgnoreEsc(bool gnore)' to GridCtrl, then modifying the corresponding section of GridCtrl::Key(dword,int) to: 
  case K_ESCAPE:
    if ( !ignore_esc )
      if(HasCtrls())
      {
        CancelEdit();
        return true;
      }
    else
      return Ctrl::Key(key,count);
 
 
Is that a clean way to approach such modifications?  Should I rather derive a child, then adjust Key there?
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: GridCtrl 'Key' modifications / questions [message #10152 is a reply to message #10139] | 
			Fri, 22 June 2007 08:19    | 
		 
		
			| 
				
	 | 
 
	
		You must wait for new dev release. GridCtrl just follows current uppsrc changes. 
| Quote: |   I am trying Upp-705-dev3. It appears that you did not add the "Set( int row, const char* alias, cont Value& val )" member?
  |  
  
Strange, I thought I did it. I will check it. 
| Quote: |   Also, as a side note, does upp-705-dev3 compile on any operating system beside Windows? And, is it stable enough to use?
  |  
  
I always use the latest version of Upp. In the most cases (if core is not changed) it's more stable (and with bugs fixed) than the previous version. 
| Quote: |  
  
I still get errors pertaining to the assembler code... but I can work around that. 
  |  
  
What errors? Assembly code is only in MSC80 version. It seems like you use mingw - maybe it does not set flagGCC. I'll check that out too.  
 
Sorry for troubles, but I think with new dev everyting will be finally ok.
		
		
		
 |  
	| 
		
	 | 
 
 
 |  
	| 
		
 |  
	| 
		
 |  
	
		
		
			| Re: GridCtrl 'Key' modifications / questions [message #10162 is a reply to message #10131] | 
			Fri, 22 June 2007 18:03   | 
		 
		
			
				
				
				
					
						  
						kcabobert
						 Messages: 51 Registered: January 2007  Location: USA
						
					 | 
					Member  | 
					 | 
		 
		 
	 | 
 
	
		Is there a way for me to use UVS to checkout a current copy of UPP and GridCtrl together?  More on point, I do not even know where to get UVS, I have search the site for "uvs" "version{ing}" with no luck. 
 
 
 
 
 
 
(YES, I do realize this is not the best thread in which to ask this question).
		
		
		
 |  
	| 
		
	 | 
 
 
 |   
Goto Forum:
 
 Current Time: Tue Nov 04 02:28:37 CET 2025 
 Total time taken to generate the page: 0.16085 seconds 
 |   
 |  
  |