Behaviour of button class in FWH 11.12
Behaviour of button class in FWH 11.12
Hello,
Since I use FWH 11.12, I experienced another behaviour in the button class.
I often use "&" in a button to make it easier for a user to activate a button by using the ALT-key.
It always used to work fine. For instance, if I put "&Add" in a button, the user presses ALT-A on his keyboard to activate the button after which the action is performed.
But since 11.12, pressing ALT-A is only setting the focus on the button, but the action behind the button is not executed.
Why is that? Can we have the old behaviour back?
Thanks a lot in advance.
Since I use FWH 11.12, I experienced another behaviour in the button class.
I often use "&" in a button to make it easier for a user to activate a button by using the ALT-key.
It always used to work fine. For instance, if I put "&Add" in a button, the user presses ALT-A on his keyboard to activate the button after which the action is performed.
But since 11.12, pressing ALT-A is only setting the focus on the button, but the action behind the button is not executed.
Why is that? Can we have the old behaviour back?
Thanks a lot in advance.
Regards,
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Michel D.
Genk (Belgium)
_____________________________________________________________________________________________
I use : FiveWin for (x)Harbour v. 21.01 - Harbour 3.2.0 (October 2020) - xHarbour Builder (January 2020) - Bcc7
Re: Behaviour of button class in FWH 11.12
Good day!
The reported problem that also happened with me!
thank you
The reported problem that also happened with me!
thank you
Contagem/Brazil
FWH/xharbour 15.12/PELLES C, MED, DBF
FWH/xharbour 15.12/PELLES C, MED, DBF
- carlos vargas
- Posts: 1421
- Joined: Tue Oct 11, 2005 5:01 pm
- Location: Nicaragua
Re: Behaviour of button class in FWH 11.12
this is the only change in tbutton class in version 11.12
can you try revert the change and test.
http://forums.fivetechsupport.com/viewt ... 75#p124275
salu2
carlos vargas
can you try revert the change and test.
http://forums.fivetechsupport.com/viewt ... 75#p124275
salu2
carlos vargas
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
Carlos Vargas
Desde Managua, Nicaragua (CA)
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Behaviour of button class in FWH 11.12
Michel,
It is a FWH 11.12 bug, we are searching for it, thanks
We apologize for it
It is a FWH 11.12 bug, we are searching for it, thanks
We apologize for it
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Behaviour of button class in FWH 11.12
Michel,
This example is also failing with FWH 11.11 so it seems as the bug was introduced before 11.11:
This example is also failing with FWH 11.11 so it seems as the bug was introduced before 11.11:
Code: Select all
#include "FiveWin.ch"
function Main()
local oDlg, cTest := "Hello"
DEFINE DIALOG oDlg
@ 1, 1 GET cTest
@ 3, 10 BUTTON "&Ok" ACTION MsgInfo( "test" )
ACTIVATE DIALOG oDlg CENTERED
return nil
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Behaviour of button class in FWH 11.12
In FWH 11.10 is working fine...
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Behaviour of button class in FWH 11.12
This is the required fix in Class TButton:
Thanks!
Code: Select all
METHOD GetDlgCode( nLastKey ) INLINE ::oWnd:nLastKey := nLastKey, nil // DLGC_WANTALLKEYS
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact:
Re: Behaviour of button class in FWH 11.12
I'm using FWH 11.11 and your sample works fine here. Why?Antonio Linares wrote:This example is also failing with FWH 11.11
EMG
- carlos vargas
- Posts: 1421
- Joined: Tue Oct 11, 2005 5:01 pm
- Location: Nicaragua
Re: Behaviour of button class in FWH 11.12
Antonio, este metodo en tget, todas las posibilidaes retornan WANTALLKEYS, no tiene sentido
que opinas?
o no le capto.
que opinas?
o no le capto.
Code: Select all
METHOD GetDlgCode( nLastKey ) CLASS TGet
if Len( ::oWnd:aControls ) == 1
return DLGC_WANTALLKEYS
endif
::oWnd:nLastKey = nLastKey
if ::oWnd:IsKindOf( "TXBROWSE" )
return DLGC_WANTALLKEYS
else
if ::oWnd:oWnd != nil .and. ;
::oWnd:oWnd:ClassName() $ "TFOLDER,TFOLDEREX,TMDICHILD,TWINDOW,TDIALOG"
return DLGC_WANTALLKEYS
endif
endif
return DLGC_WANTALLKEYS
Last edited by carlos vargas on Thu Jan 12, 2012 11:26 pm, edited 1 time in total.
Salu2
Carlos Vargas
Desde Managua, Nicaragua (CA)
Carlos Vargas
Desde Managua, Nicaragua (CA)
- Antonio Linares
- Site Admin
- Posts: 37481
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Contact:
Re: Behaviour of button class in FWH 11.12
Enrico,Enrico Maria Giordano wrote:I'm using FWH 11.11 and your sample works fine here. Why?Antonio Linares wrote:This example is also failing with FWH 11.11
EMG
Surely you were using an early 11.11 that got modified little later
- Enrico Maria Giordano
- Posts: 7355
- Joined: Thu Oct 06, 2005 8:17 pm
- Location: Roma - Italia
- Contact: