Hi Tracy,
Yes, I know, and I tried. The point is, what you still have to pass all three caption button parameters. I didn't know and it's not explained explicitly in the Document (or may be I didn't notice).
Anyway, it's working fine now. And, BTW, in the particular application I decided to use all three buttons at the end :)
BTW, Sergey, does it allow to specify timeout parameter?
>Hi Nadya, if you only wanted two buttons, change MB_YESNOCANCEL to MB_YESNO (for two buttons only).
>Tracy
>>Hi Tracy,
>>
>>As Sergey pointed out, you have to pass all three captions, even if you use only 2 or 1 button.
>>
>>>I Nadya, I used it with VFP7 w/SP1.
>>>
>>>Here is some dummy code I tested it with successfully:
>>>
>>>
>>>set LIBRARY TO vfpevent.fll additive
>>>*LIST STATUS
>>>#INCLUDE foxpro.h
>>>LOCAL lnResult
>>>lnResult=EventMBox("Do you want to continue?",;
>>> MB_YESNOCANCEL + MB_ICONQUESTION + MB_DEFBUTTON3,;
>>> "Please choose Continue or Quit",;
>>> "&Continue",;
>>> "&Quit",;
>>> "&I don't know!")
>>>
>>>DO CASE
>>>CASE lnResult=IDYES
>>> WAIT WINDOW "You choice to continue"
>>>CASE lnResult=IDNO
>>> WAIT WINDOW "You chose to Quit"
>>>CASE lnResult=IDCANCEL
>>> WAIT WINDOW "You said you don't know!"
>>>ENDCASE
>>>
>>>SET LIBRARY TO
>>>
>>>
>>>>Hi again, Tracy.
>>>>
>>>>I've read the accomponied document with this class and it doesn't tell us, for which version of VFP does this class work. What VFP version did you try?
>>>>
>>>>Since this is only fll, no source code, it may depend on external DLLs, which could differ from VFP6 to VFP7.
>>>>
>>>>>I did Nadya! :0)
>>>>>Tracy
>>>>>
>>>>>>Hi Tracy,
>>>>>>
>>>>>>You can put your comment into Downloads area.
>>>>>>
>>>>>>>Thanks Sergey, I just tested it and it works great!
>>>>>>>Tracy
>>>>>>>
>>>>>>>>>I recall a thread a while ago that discusses a way to use a messagebox and allow for changing the captions on the buttons to something other than ok/cancel or yes/no. However I can not locate it by searching. Does anyone know of a way to do this?
>>>>>>>>>
>>>>>>>>>TIA,
>>>>>>>>>Tracy
>>>>>>>>
>>>>>>>>See file #
9676.
If it's not broken, fix it until it is.
My Blog