Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Message Box Function
Message
From
06/01/2002 12:35:17
Carmen Gassi
Perseus Software Systems
Oakville, Ontario, Canada
 
 
To
06/01/2002 12:23:42
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00601277
Message ID:
00601280
Views:
49
>>Thanks Greg
You are absolutely correct. I tried using 276 as the parameter, and it displayed the correct buttons. There is a mis-print in the book I guess, because I checked and re-checked it. Thanks for the help. Any ideas about changing the text of the buttons?

Regards,
Carmen
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
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform