Hi Antonio,
Fwh2.7 april build fix the cancel clause with acelerator in button?
Example: ALT+C in button ignores cancel clause.
Thanks.
Question about fwh 2.7 April build
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact:
Wanderson,
This code is properly working with FWH april build:
This code is properly working with FWH april build:
Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oDlg, cTest := Space( 20 )
DEFINE DIALOG oDlg
@ 1, 2 GET cTest VALID ! Empty( cTest )
@ 3, 5 BUTTON "&Cancel" ACTION oDlg:End() CANCEL
ACTIVATE DIALOG oDlg CENTER
return nil
Antonio Linares wrote:Wanderson,
This code is properly working with FWH april build:Code: Select all | Expand
#include "FiveWin.ch"
function Main()
local oDlg, cTest := Space( 20 )
DEFINE DIALOG oDlg
@ 1, 2 GET cTest VALID ! Empty( cTest )
@ 3, 5 BUTTON "&Cancel" ACTION oDlg:End() CANCEL
ACTIVATE DIALOG oDlg CENTER
return nil
Linares try this please:
function Main()
local oDlg, cTest := Space( 20 )
DEFINE DIALOG oDlg
@ 1, 2 GET cTest VALID Mostra()
@ 3, 5 BUTTON "&Cancel" ACTION oDlg:End() CANCEL
ACTIVATE DIALOG oDlg CENTER
return nil
Static Function Mostra()
MsgInfo("Wrong")
Return .t.
If i click in button cancel function mostra dont execut and the dialog finish, thats ok. But if i press ALT+C function mostra execute.
Regards.
- Antonio Linares
- Site Admin
- Posts: 42512
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 31 times
- Been thanked: 73 times
- Contact: