Numeric Keypad - Incremental Search on Browse

You can share your experience with HMG. Share with some screenshots/project details so that others will also be benefited.

Moderator: Rathinagiri

Post Reply
ptmocho
Posts: 2
Joined: Thu Apr 11, 2019 4:43 pm
DBs Used: DBF

Numeric Keypad - Incremental Search on Browse

Post by ptmocho »

Hi guys,

Need some help. I am using Minigui 19.06. I am currently using in production, a module that was based on Joe Fanucchi example MiniGUI\SAMPLES\BASIC\DualBrowse, this uses a modified version of h_windows.prg, the IncrementalSearch() function however it´s not
accepting the numeric keypad keys in the seek when Numlock is ON, the Navigation keys however with the Numlock OFF works fine, do you guys have any idea how to put this keys to work in this. I think this can be done with the manipulation of the GetGridvKey( lParam ) in Myevents, but i am not getting nowhere, and this is an issue for my client. I have attached the original code so you guys can take a quick look.

Thank you so much.


Sérgio
Attachments
DualBrowse.zip
(22.37 KiB) Downloaded 198 times
ptmocho
Posts: 2
Joined: Thu Apr 11, 2019 4:43 pm
DBs Used: DBF

Re: Numeric Keypad - Incremental Search on Browse

Post by ptmocho »

Hi,

I have already solved this, the virtual key codes of the numeric keypad that i have to monitor with GetGridvKey() on myevents are :

#define VK_NUMPAD0 0x60
#define VK_NUMPAD1 0x61
#define VK_NUMPAD2 0x62
#define VK_NUMPAD3 0x63
#define VK_NUMPAD4 0x64
#define VK_NUMPAD5 0x65
#define VK_NUMPAD6 0x66
#define VK_NUMPAD7 0x67
#define VK_NUMPAD8 0x68
#define VK_NUMPAD9 0x69
#define VK_MULTIPLY 0x6A
#define VK_ADD 0x6B
#define VK_SEPARATOR 0x6C
#define VK_SUBTRACT 0x6D
#define VK_DECIMAL 0x6E
#define VK_DIVIDE 0x6F


Thank you guys

Sérgio
Post Reply