Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Messagebox font control
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows 2000 SP4
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01066972
Message ID:
01067060
Views:
17
This message has been marked as a message which has helped to the initial question of the thread.
Dennis,

The font inside the MessageBox can be actually changed, though it requires some coding.

If the Timer object is created before the MessageBox, the dialog's window can be accessed from the method attached to the Timer event. Several API calls are applied to change the font.

The change may be not exactly smooth, for a fraction of time the original font is still visible.

Also if the new font is substantially larger, you have to add several CRLFs to the end of the message, artificially increasing the height of the dialog. Otherwise the message may be cut.

The message inside the message box can be altered to, although its length can not be increased.

FoxPro code sample (members area):
How to change font name and size in the MessageBox dialog
http://www.news2news.com/vfp/?example=434

So it's a clear choice, whether to use this technique or just develop a custom class.

Btw, check Steven Black's Message Services class.
http://www.stevenblack.com/SBCPublicDomain.asp
Previous
Reply
Map
View

Click here to load this message in the networking platform