Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MessageBox with different captions on buttons
Message
From
12/02/2002 11:54:15
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00618774
Message ID:
00618905
Views:
14
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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform