I have 2 things I need help with:
1) I use a couple FireTextBoxes on a data entry screen. I use "..._MSG_CHANGE" to set a flag & determine if the record is dirty and needs to be updated. What's happening is that when I press TAB to leave the FireTextBox, the message always fires, even if I haven't typed anything.
2) For on of the boxes, I need to know if the user pressed TAB to leave the box, so that I can switch to a different tab on a tab control. It seems that "..._MSG_KEYPRESS" is the place to start, but I can't figure out how to determine what key was pressed.
Bump
Nathan,
The Firefly help file, under the FireTextBox entry, has example code for a FF-generated Function FORM1_FIRETEXTBOX1_FIRETEXTBOX_MSG_KEYPRESS.
Try copying the code in that example into your program, substituting %VK_TAB for %VK_RETURN. That should start you down the right path.
David
Very cool, thanks!
I didn't think to look there because traditionally the FF help file was all about how to use the environment.
That worked great, and it gave me a mechanism to detect "real" changes to the data in the box.
I'm happy to hear you got something extra out of that. For a complete list of the virtual keys, take a look at the Win32api.inc file in the PB WinAPI folder. Just search on "'VK_".