Multi-line wxTextCtrl in tabbed dialogs

Just in case you didn't know it, the multi-line edit controls in Windows
all support Ctrl-Z as an undo key, so such an accident is not fatal.

Did you try setting the selection as soon as you put text in the control?
Are you using wxTE_NOHIDESEL?

···

On Mon, 3 Nov 2003 12:54:04 +0000, Pythonologist <pythonologist@octave.demon.co.uk> wrote:

Under W2K, when a wxTextCtrl within a dialog (with buttons and so on)
receives the focus via tabbing, it selects all the text. This is fine
and normal practice with single-line input fields. However, with multi-
line entry fields, I don't really like it because it is easy to his
space or suchlike and zap the entire contents. I'd prefer that the
cursor simply appears at the last insertion point as occurs when you
click (but this changes the insertion point!). I've tried installing
handlers for OnFocus and OnActivateFocus, and then calling
SetSelection() but without much luck.

--
- Tim Roberts, timr@probo.com
  Providenza & Boekelheide, Inc.