Hi,
In our application, we want all text fields to start in overwrite mode. I've
been unable to find any reference to this feature anywhere in the wxWidgets
docs so am looking for workarounds (if I've missed something obvious here, I'll
be very grateful for the answer).
I'm looking at using EmulateKeyPress instead and just sending a WXK_INSERT
event to every control on creation, which should/might flip the
insert/overwrite mode. However, any examples I've seen have been in C++ or
Python and access the KeyEvent internal variable thus:
evt.m_keyCode = WXK_INSERT;
There doesn't seem to be a way of either constructing a KeyEvent with a given
code or setting it after construction; there's no SetKeyCode.
I've tried "evt->m_keyCode(WXK_INSERT)" and "evt->{m_keyCode} = WXK_INSERT" to
no avail; any help out there?
Ian Macdonald
Melbourne, Australia
WARNING: This email and any attachments may be confidential, subject to
copyright and subject to legal professional privilege. If you have received
this email in error, please notify the sender and permanently delete the email.
Linfox Australia Pty Ltd and its related companies do not warrant that this
email and any attachments are free of errors, viruses or tampering by third
parties, and will not be responsible for loss or damage resulting (either
directly or indirectly) from any such error, virus or tampering. Any personal
information in this email must be handled in accordance with the Australian
Privacy Act 1988 (Cth) or privacy laws in the respective countries. If this is
a commercial email within the meaning of the Spam Act, you may inform us using
contact details at www.linfox.com