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 - Child Ctrl, selected row, focus issue
Re: GridCtrl - Child Ctrl, selected row, focus issue [message #10133 is a reply to message #10130] Thu, 21 June 2007 22:26 Go to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

kcabobert wrote on Thu, 21 June 2007 14:15

Should not EnterLikeTab() make <enter> actually behave like <tab>? In my particular case, I need for <enter> to actually just move to the next row, then on the last row pass focus onto the next ctrl.

Perhaps the best solution is to derive another class from GridCtrl so that I can just override 'Key' and make it behave as needed?

Yes, EnterLikeTab makes enter to behave exactely the same way like tab except one thing. If under cursor is not shown control enter makes it visible and then pass focus to the next visible control.
Your case is very specific. Deriving new class is one solution, another one is to add callback which if is definied it is call instead of Key() body.
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: Ctrls<>() Callback / Disable some rows
Next Topic: GridCtrl 'Key' modifications / questions
Goto Forum:
  


Current Time: Fri Jul 18 10:47:18 CEST 2025

Total time taken to generate the page: 0.03924 seconds