Paul,
How does this new feature work. And how is it intended to be used?
Quote
0000646: [New Feature Request] Allow FireTextBox to send keypress notifications to the part form (Paul Squires) - closed
Will this capture and notify that a FunctionKey ie: F1 has been pressed?
How about Alt-Key combinations?
This was discussed in http://www.planetsquires.com/protect/forum/index.php?topic=2084.msg16878#msg16878
Here is an example to trap the ENTER key and the F1 key:
Function FORM1_FIRETEXTBOX1_FIRETEXTBOX_MSG_KEYPRESS( ControlIndex As Long, _
hWndForm As Dword, _
hWndControl As Dword, _
idTextControl As Long, _
pKeyPressNotify As Dword _
) As Long
Local pKey As FIRETEXTBOX_KEYPRESS Ptr
' Assign the incoming notification pointer
pKey = pKeyPressNotify
Select Case @pKey.nWinMsg
Case %WM_CHAR
If @pKey.nKeyPress = %VK_RETURN Then
' We will process the key here
? "ENTER pressed"
' Cancel the FireTextBox from processing the key
Function = %TRUE
End If
Case %WM_KEYDOWN
If @pKey.nKeyPress = %VK_F1 Then
? "F1 pressed"
' Cancel the FireTextBox from processing the key
Function = %TRUE
End If
End Select
End Function
Paul,
Is there a way to run a form through a conversion program that would convert all TEXTBOX 's to FIRETEXTBOX 's. I have some old forms and there are hundreds of TEXTBOX 's on those forms. It sure would be nice if there was a way to automate the process of changing them to FIRETEXTBOX 's