Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Change Button Caption in a YES/NO Messagebox 2

Status
Not open for further replies.

Vasile1991

Programmer
May 26, 2012
7
0
0
RO
Hello,
I'm just wondering if there's possible that when you create a Messagebox with Yes/No buttons you could perhaps specify other captions for those buttons... This could help me a lot in a project I'm working on because I'd like them in some other language (although many people already know what's Yes or No)
So, is it possible?

Thanks,
Vasile
 
The messagebox will display Yes and No in other languages, if you deploy a VFP9RXXX.dll with XXX being the language of your choice. There are locale specific images and texts included in these resource DLLs. Besides VFP9RENU.dll for english there are:

Code:
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rchs.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rcht.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rcsy.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rdeu.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\VFP9RENU.DLL"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9resn.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rfra.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rkor.dll"
"C:\Program Files (x86)\Common Files\microsoft shared\VFP\vfp9rrus.dll"

Take these and put them to your exe. Ready to go. The correct one will be used by VFP, matching the OS locale. Besides these button texts (also "Cancel", "OK", etc.), CMONTH() will also return locale month names and many more stuff is in there...

Each DLL is stuffed with a megabyte of such locale specific things.

Bye, Olaf.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top