Insert key as hotkey?

Discuss anything else that does not suite other forums.

Moderator: Rathinagiri

Post Reply
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Insert key as hotkey?

Post 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 :)
With best regards,
Sudip
User avatar
Rathinagiri
Posts: 5482
Joined: Tue Jul 29, 2008 6:30 pm
DBs Used: MariaDB, SQLite, SQLCipher and MySQL
Location: Sivakasi, India
Contact:

Re: Insert key as hotkey?

Post by Rathinagiri »

Why not?!
East or West HMG is the Best.
South or North HMG is worth.
...the possibilities are endless.
User avatar
sudip
Posts: 1456
Joined: Sat Mar 07, 2009 11:52 am
Location: Kolkata, WB, India

Re: Insert key as hotkey?

Post 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).
With best regards,
Sudip
Post Reply