There are no parameters for it, no. The reason is the VFP MessageBox function just wraps a core Windows OS function you could also use with the help of DECLARE:
Code:
DECLARE INTEGER MessageBox IN user32 As MessageBoxA;
INTEGER hwnd,;
STRING lpText,;
STRING lpCaption,;
INTEGER wType
It gives you less options, for example it has no timeout parameter.
But the similarity is striking, these are screenshots of the two message boxes, showing they actually are the same system dialog, not determined by VFP. Even the icons and button text are coming from the OS and will also be in the Windows user language.
The good news is that this means there is a simple answer, the font size will depend on Windows settings, including those for users that are visually impaired or with low vision. This means, you let the user govern this by Windows settings, if he is visually impaired and makes use of Windows features for them, the MessageBox will have a larger font.
But the bad news is, if you go as far as you already did and take control of your form designs, background images, rounded rectangle images and other features for the design you wanted, you divert from the Windows standard theming, which goes as far as that the Windows OS solution for accessibility for impaired users is only working for the Messagebox and some other things like GetFile, which also just is wrapping a system common dialog, which look font, colors, etc. are under Windows OS control.
On the other hand, since you're not the first wanting more options I could point out several extensions that give you that. But in the end they also won't give you full control and I bet it won't end at wanting larger text.
I guess you ask because the MessageBox system dialog looks foreign in contrast to the rest of your application form design, that's just one more reason to not use the MessageBox function or any feature enriched version based on it.
Well, instead, do your own Messagebox form class.
What you need is just a label with WordWrap and AutoSize properties set .T. to allow automatic wrapping of text and automatic adjustment of the label size/height. You then can choose your own set of icons, have further buttons with other captions and functions and, well, anything you want. It's even quite simple to adjust the form height with the label height and anchor buttons to the bottom of the form, have a background image stretching and also anchored to form borders, then you have already much more in your own hands.
There's even a simple hack to keep all code as is with MessageBox calls, by a #DEFINE MessageBox YourMessageBoxFunction and implementing the same parameters as the MessageBox in YourMessageBoxFunction.prg that starts a form, sets its caption etc., waits in a modal state - just as the Messagebox does - and eventually returns the usual return values, too.
Chriss