Question about fwh 2.7 April build

Question about fwh 2.7 April build

Postby Wanderson » Wed Apr 05, 2006 10:23 pm

Hi Antonio,

Fwh2.7 april build fix the cancel clause with acelerator in button?

Example: ALT+C in button ignores cancel clause.

Thanks.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Postby Antonio Linares » Thu Apr 06, 2006 9:41 am

Wanderson,

This code is properly working with FWH april build:
Code: Select all  Expand view
#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   
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Wanderson » Thu Apr 06, 2006 11:34 pm

Antonio Linares wrote:Wanderson,

This code is properly working with FWH april build:
Code: Select all  Expand view
#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.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm

Postby Antonio Linares » Fri Apr 07, 2006 7:32 am

Wanderson,

With FWH april build it works ok.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41205
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Wanderson » Fri Apr 07, 2006 3:31 pm

Antonio Linares wrote:Wanderson,

With FWH april build it works ok.


Thanks Antonio, my fwh version is older that april build.
Have many modifications to fix this problem? If simple post here please.

Regards.
Wanderson
 
Posts: 332
Joined: Thu Nov 17, 2005 9:11 pm


Return to Bugs report & fixes / Informe de errores y arreglos

Who is online

Users browsing this forum: No registered users and 6 guests