Page 1 of 1
Insert key as hotkey?
Posted: Sat Sep 25, 2010 8:32 am
by sudip
Hello All,
Old clipper programmers sometimes used insert key as hot key for adding records. Shhould we continue thispractice?
Please send ypur views. Thanks in advance

Re: Insert key as hotkey?
Posted: Sat Sep 25, 2010 8:38 am
by Rathinagiri
Why not?!
Re: Insert key as hotkey?
Posted: Sat Sep 25, 2010 9:39 am
by sudip
Hello Rathi,
May be I am wrong, but how can I toggle Insert/Overwrite mode for a textbox, if SET KEY INSERT ... is defined?
Please check the following small sample.
Code: Select all
#include <hmg.ch>
Function Main
define window main at 0, 0 width 400 height 300 title "Insert key test" main
DEFINE STATUSBAR
KEYBOARD
END STATUSBAR
define textbox text1
row 10
col 10
end textbox
define label lablel1
row 50
col 10
value "Please try to toggle Insert/Overwrite mode for Textbox"
autosize .t.
end label
end window
ON KEY INSERT OF MAIN ACTION MSGBOX("Insert key pressed!")
Main.Center
Main.Activate
Return
IMHO, Insert key has a special purpose (which is it's default behavior).