Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MessageBox with different captions on buttons
Message
De
12/02/2002 12:38:56
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00618774
Message ID:
00618936
Vues:
15
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.
.·*´¨)
.·`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"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform