Page 1 of 1

Problems getting Insert/Overtype to toggle

Posted: Fri Feb 17, 2006 6:36 pm
by TAG
I want to be able to toggle between Insert and Overtype modes.

Is there an event that reads the state of the insert key?

Thanks for your help.

Posted: Sat Feb 18, 2006 5:34 pm
by Sergey Tkachenko
Insert key does not have its state in a way like CapsLock or NumLock.
A program should start in its default mode (usually insert mode) and can switch mode when user pressed Insert in the editor window. OnKeyDown event can be used to detect it (only Insert must be pressed, without Shift and Ctrl).
See also: http://www.trichview.com/forums/viewtopic.php?t=171