PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Nathan Durland on February 25, 2010, 12:02:58 PM

Title: FireTextBox help, please
Post by: Nathan Durland on February 25, 2010, 12:02:58 PM
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.
Title: Re: FireTextBox help, please
Post by: Nathan Durland on March 12, 2010, 02:39:20 PM
Bump
Title: Re: FireTextBox help, please
Post by: David Kenny on March 12, 2010, 03:03:03 PM
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
Title: Re: FireTextBox help, please
Post by: Nathan Durland on March 12, 2010, 06:29:57 PM
Very cool, thanks!

I didn't think to look there because traditionally the FF help file was all about how to use the environment.
Title: Re: FireTextBox help, please
Post by: Nathan Durland on March 15, 2010, 05:28:08 PM
That worked great, and it gave me a mechanism to detect "real" changes to the data in the box.
Title: Re: FireTextBox help, please
Post by: David Kenny on March 16, 2010, 04:53:54 AM
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_".