Tabs in Memo or Text Controls

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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.
 
Back
Top