No. I want to write a generic set of MsgBox functions where OK = OK and NO = NO. In other words, the NO button must always return %IDNO, not %IDOK.
In the meantime I solved the problem. This matter was discussed before here, but initially I did a wrong search for it.
It appears not to be possible to set a default button (other than OK) while adding the control to the dialog. But once the control is set, you can launch the following message, in order to achieve what you want:
Code:
CONTROL SEND hDlg, BtnID, %BM_SETSTYLE, %BS_DEFPUSHBUTTON, %TRUE CONTROL SET FOCUS hDlg, BtnID
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Leave a comment: