Tabs in Memo or Text Controls

G

Guest

Hi
When the tab key is pressed in a Memo or RichText component, the focus moves to the next control. There is no property like the EnterKeyBehaviour for the Tab key, how can I code it to enter a tab space rather than move the focus? Its highly irritating. KeyPreview doesn't seem to have much potential as you can't disable the move focus action.

Any help or even a quick tip and push in the right direction would be much appreciated.
 
R

Rick Brandt

Dave_S_UK said:
Hi
When the tab key is pressed in a Memo or RichText component, the focus
moves to the next control. There is no property like the EnterKeyBehaviour
for the Tab key, how can I code it to enter a tab space rather than move
the focus? Its highly irritating. KeyPreview doesn't seem to have much
potential as you can't disable the move focus action.

Even if you could insert them <tabs> do not appear properly in a standard
Access TextBox. They would just show up as small squares. You would have
to use a Rich Text ActiveX control to support formatted text like that.

The best you can do with a standard TextBox is use a mono-spaced font and
insert spaces.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top