I found and fixed 2 problems in DEAFULTPUSHBUTTON management:

1)
In function DIALOG_CreateControls32 if a default push button exists the dlgInfo->idResult is set with the DefPushButtonId.
If I change the focus to other controls of the dialog with the TAB key,  each time I change the focus the function DEFDLG_SetDefButton is called (and that is correct) and the dlgInfo->idResult is set with the new control id also if it is NOT a button (i.e. "edit control"). As a result, pressing the 'Enter'key, nothing happens.
I reviewed the code and changed the following:
    1. added a  member in the DIALOGINFO structure (int OriDefButID) where the original default button ID is stored.
    2. modified the DEFDG_SetDefButton function (windows/defdlg.c).

2)
Pressing the Enter key in a Dialog without a default push-button, a wrong button ID is returned (always '1').
I modifiied the code (DIALOG_CreateControls32 function in ./windows/dialog.c), so that at least an existing button-ID is stored as a default.

NB: I can't use CVS (for a login problem)
-- 
Katia Maculan
Developer
ISIS Papyrus Italy Srl
Tel: (+39) 0125 6455400 Fax: (+39) 0125 6455150
E-mail: katia.maculan@isis-papyrus.com

Info: info@isis-papyrus.com
Hotline: +43-2236-27551-111
Visit our Website: http://www.isis-papyrus.com