Data Access Worldwide Knowledge Base

Article ID 2114
Article Title INFO: CTRL+TAB on RichEdit control placed on TabPages
Article URL http://www.dataaccess.com/kbasepublic/KBPrint.asp?ArticleID=2114
KBase Category VDF11
Date Created 04/27/2005
Last Edit Date 07/17/2008


Article Text
QUESTION:
I have a text object in a multi-tab page view. I changed the standard Edit object to cDbRichEdit object. Now, if I press Control+Tab to enter a tab character, it moves to the next 'Tab Page'. Why is that happening?


ANSWER:
CTRL+TAB should produce the tab in your rich edit control and it will IF the rich edit control is not on a tab page. That's because CTRL+TAB is also a shortcut for switching between tab pages.

You should see the same behavior if you use a dbEdit control.

If you need to override the default behavior, you can add this single line of code to your cdbRichEdit object:

On_Key KEY_CTRL+KEY_TAB Send Default_Key


WORKAROUND:
You can enter a tab character in a rich edit control from the keyboard by holding down the (left) Alt key and type 0 0 0 9 on the numeric keypad.


Contributed By:
Slobodan Predolac
Web Site: http://www.dataaccess.com


Email this Article
Email this Article to a Colleague
Send Feedback on this Article to Data Access Worldwide
Copyright ©2010 Data Access Corporation. All rights reserved.

The information provided in the Data Access Technical Knowledge Base is provided "as is" without warranty of any kind. Data Access Corporation disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Data Access Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Data Access Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.