Peculiar condition, or erroneous code?
Control Add Button, hDlg&, %NQfinBtn, "OK", 286, 281, 60, 20, _
%BS_DEFAULT
There are no other %BS_DEFAULT controls on the dialog.
This did not have any heavy black border, nor responded to the
ENTER key.
Searching the forums, I found a posting from Lance, and used
that:
Control Enable hDlg&, %NQfinBtn
Control Set Focus hDlg&, %NQfinBtn
Control Send hDlg&, %NQfinBtn, %BM_SETSTYLE, %BS_DEFPUSHBUTTON, _
%TRUE
This brought along the border effect, but still no reponse to the
ENTER key. Adding a specific callback function ---
Control Add Button, hDlg&, %NQfinBtn, "OK", 286, 281, 60, 20, _
%BS_DEFAULT Call NewQuoteStarted
... doesn't make any difference.
Anybody have an answer?
(The Petzold book I have ordered MAY yet materialise -- I just
received this message: "Just to let you know we are expecting
your order around 16 November 2000.")
------------------
Control Add Button, hDlg&, %NQfinBtn, "OK", 286, 281, 60, 20, _
%BS_DEFAULT
There are no other %BS_DEFAULT controls on the dialog.
This did not have any heavy black border, nor responded to the
ENTER key.
Searching the forums, I found a posting from Lance, and used
that:
Control Enable hDlg&, %NQfinBtn
Control Set Focus hDlg&, %NQfinBtn
Control Send hDlg&, %NQfinBtn, %BM_SETSTYLE, %BS_DEFPUSHBUTTON, _
%TRUE
This brought along the border effect, but still no reponse to the
ENTER key. Adding a specific callback function ---
Control Add Button, hDlg&, %NQfinBtn, "OK", 286, 281, 60, 20, _
%BS_DEFAULT Call NewQuoteStarted
... doesn't make any difference.
Anybody have an answer?
(The Petzold book I have ordered MAY yet materialise -- I just
received this message: "Just to let you know we are expecting
your order around 16 November 2000.")
------------------
Comment