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 » GridCtrl 'Key' modifications / questions
GridCtrl 'Key' modifications / questions [message #10131] Thu, 21 June 2007 20:37 Go to previous message
kcabobert is currently offline  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?
 
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 - Child Ctrl, selected row, focus issue
Next Topic: ArrayCtrl & Option == CheckListBox ?
Goto Forum:
  


Current Time: Tue May 14 01:45:05 CEST 2024

Total time taken to generate the page: 0.01685 seconds