Fellows,
I'm becoming rather confused about the %BS_DEFAULT / %BS_DEFPUSHBUTTON issue. This is what the PBDLL help file says:
"%BS_DEFAULT - Creates a button with a heavy black border. The user can select this button by pressing the ENTER key. This style is useful for enabling the user to quickly select the most likely option. You can only have one Default button per dialog."
Unfortunately, the heavy black border only appears when the button has the %IDOK identifier. Any other value does not create a button with a black border, despite the %BS_DEFAULT style.
Now my problem: I want to create a dialog with, say, 3 buttons, Yes, No and Cancel. 'No' is the most likely option here, so this one should show up with the black border. To assign this genuine default look to it, I have to give it the %IDOK identifier. No problem, so far but when the user activates the button it returns 1, while my CALLBACK FUNCTION expects 7 (= %IDNO).
Has anybody struggled with this thing? And, if so, what is the most reliable trick to achieve both, a good looking button and the correct return value as well??
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
I'm becoming rather confused about the %BS_DEFAULT / %BS_DEFPUSHBUTTON issue. This is what the PBDLL help file says:
"%BS_DEFAULT - Creates a button with a heavy black border. The user can select this button by pressing the ENTER key. This style is useful for enabling the user to quickly select the most likely option. You can only have one Default button per dialog."
Unfortunately, the heavy black border only appears when the button has the %IDOK identifier. Any other value does not create a button with a black border, despite the %BS_DEFAULT style.
Now my problem: I want to create a dialog with, say, 3 buttons, Yes, No and Cancel. 'No' is the most likely option here, so this one should show up with the black border. To assign this genuine default look to it, I have to give it the %IDOK identifier. No problem, so far but when the user activates the button it returns 1, while my CALLBACK FUNCTION expects 7 (= %IDNO).
Has anybody struggled with this thing? And, if so, what is the most reliable trick to achieve both, a good looking button and the correct return value as well??
------------------
mailto:[email protected][email protected]</A>
www.basicguru.com/zijlema/
Comment