PlanetSquires Forums

Support Forums => Other Software and Code => Topic started by: Jean-pierre Leroy on January 23, 2010, 05:42:07 AM

Title: FireTexBox controls beep when lose focus ?
Post by: Jean-pierre Leroy on January 23, 2010, 05:42:07 AM
Hi,

I don't know if other FireFly users have the same behavior on their PC or not with the FireTextBox controls.

On my PC, when the FireTextBox control loses focus I hear a beep.

It happens with both "Tradional" and "Modern" design style and with all mask styles except "Date".

Can you report in this thread if you have the same behavior as me on your PC ?

PS: Here is a small project that you can use to test if you hear the beep.

Thanks you.
Jean-Pierre

Title: Re: FireTexBox controls beep when lose focus ?
Post by: Marc van Cauwenberghe on January 23, 2010, 07:03:48 AM
No prpblem here.

Marc
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Cho Sing Kum on January 23, 2010, 07:25:07 AM
Yes, there are. Except Currency and Date.


WinXP Pro SP3 32 bit
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Rolf Brandt on January 23, 2010, 07:40:03 AM
Same behaviou as Cho Sing Kum here.

WinXP Pro SP3
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Peter Maroudas on January 23, 2010, 09:12:21 AM
Same Beep here , except for Date entry
WinXP Pro SP3
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Paul Squires on January 23, 2010, 10:19:44 AM
Yes, there is a problem. When I am handling the TAB key to move to the next control, I am not "eating" the key once the GetNextDlgTabItem call is made. Here is the change (around line 1734 of the FireTextBox.inc file). I am adding Function = %TRUE: Exit Function.


         ' We would have intercepted the TAB key because we used %DLGC_WANTALLKEY.
         ' Windows will now expect us to handle the tabbing ourselves.
         If (wParam = 9) And (wMsg = %WM_CHAR) Then
            If (GetAsyncKeyState(%VK_SHIFT) And &H8000) = 0 Then
               SetFocus GetNextDlgTabItem( GetParent(GetParent(hWnd)), GetParent(hWnd), %FALSE )
            Else
               SetFocus GetNextDlgTabItem( GetParent(GetParent(hWnd)), GetParent(hWnd), %TRUE )
            End If
            Function = %TRUE: Exit Function   
         End If


I am attaching the new include file here for you to try.
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Jean-pierre Leroy on January 23, 2010, 11:22:10 AM
Paul,

I downloaded and installed the new FireTextBox.inc file; it works for me; no more beep.

Thanks for the quick fix.
Jean-Pierre
Title: Re: FireTexBox controls beep when lose focus ?
Post by: Roger Garstang on January 23, 2010, 03:47:57 PM
Perhaps this same type of issue is why the Properties in FF3 Beep when they lose focus or are closed too?