Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Message Box Function
Message
De
06/01/2002 12:23:42
 
 
À
06/01/2002 12:10:23
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00601277
Message ID:
00601278
Vues:
36
>This question seems trite in view of some of the other questions I have been reading, however the only dumb question is the one you don't ask, so here goes. When using the messagebox() function, is it possible to change the text on the selection buttons? In addition to that, when I use the messagebox() function, I am experiencing some unusual behaviour. I tried using the following code to produce a message which would show the stop icon, the "YES,NO" button set, and set the focus to the second button.According to the Hacker's Guide for VFP 6.0, the integer should have been as follows:
> 16 - Stop Icon
> 2 - Yes, No
> 256 - 2nd button has the focus. When I use the 274 parameter however, I get the three buttons, Abort,Retry,Ignore showing up. I have tried it many different ways, but with the same result.
>
>Thanks to All
>Regards
>Carmen

Carmen,

I think YesNo is 4

should be 4 + 16 + 256

excerpt from FoxPro.h
*-- MessageBox parameters
#DEFINE MB_OK                   0       && OK button only
#DEFINE MB_OKCANCEL             1       && OK and Cancel buttons
#DEFINE MB_ABORTRETRYIGNORE     2       && Abort, Retry, and Ignore buttons
#DEFINE MB_YESNOCANCEL          3       && Yes, No, and Cancel buttons
#DEFINE MB_YESNO                4       && Yes and No buttons
#DEFINE MB_RETRYCANCEL          5       && Retry and Cancel buttons

#DEFINE MB_ICONSTOP             16      && Critical message
#DEFINE MB_ICONQUESTION         32      && Warning query
#DEFINE MB_ICONEXCLAMATION      48      && Warning message
#DEFINE MB_ICONINFORMATION      64      && Information message

#DEFINE MB_APPLMODAL            0       && Application modal message box
#DEFINE MB_DEFBUTTON1           0       && First button is default
#DEFINE MB_DEFBUTTON2           256     && Second button is default
#DEFINE MB_DEFBUTTON3           512     && Third button is default
#DEFINE MB_SYSTEMMODAL          4096    && System Modal
Gregory
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform