Possible to put TextCtrl into overwrite mode programatically?

Hi all

With gtk2 (2.8.10.1), if I press the 'Insert' button on the keyboard while a
TextCtrl has focus, it switches to overwrite mode, and the caret changes to
a block.

If I do the same with msw (2.8.10.1), neither of these things happen.

I have two questions -

1. Is it possible to get msw to behave the same as gtk2?

2. Is it possible to put a TextCtrl into overwrite mode programatically?

My motivation for 2 is as follows -

In my DateCtrl program that has been discussed recently, I use an EVT_CHAR
handler that effectively puts the text control into overwrite mode, similar
to a MaskedEdit control. However, the caret remains a vertical line, so it
is not obvious to the user. It would be nice if I could programatically
change the caret to a block.

Thanks

Frank Millman

Hi all

With gtk2 (2.8.10.1), if I press the 'Insert' button on the keyboard while a
TextCtrl has focus, it switches to overwrite mode, and the caret changes to
a block.

If I do the same with msw (2.8.10.1), neither of these things happen.

I have two questions -

1. Is it possible to get msw to behave the same as gtk2?

Perhaps, but not via the wx interface.

2. Is it possible to put a TextCtrl into overwrite mode programatically?

Ditto.

···

On 7/12/10 6:21 AM, Frank Millman wrote:

--
Robin Dunn
Software Craftsman