Article View: borland.public.cppbuilder.internationalization
Article #122Re: How to translate MessageDlgPos-Dialog
From: Wiebe Vos, Foxware
Date: Thu, 20 Jan 2005 20:55
Date: Thu, 20 Jan 2005 20:55
53 lines
2445 bytes
2445 bytes
Hi Tom,
There is nothing mysterious about using an API function.
Here is a code example of the way I use this function (Dutch language) in
any TForm:
//--------------
if ( MessageBoxEx ( Handle, "Weet u het zeker?", "Attentie...",
MB_TASKMODAL+MB_ICONQUESTION+MB_SETFOREGROUND+MB_YESNO+MB_DEFBUTTON2,
MAKELANGID(LANG_DUTCH,SUBLANG_DUTCH) ) EQ
IDYES )
{
// do it!
}
//---------------
Also Google for more info.
Wiebe
"Tom" <tstucki@mcssoftware.ch> schreef in bericht
news:41ee25b8$1@newsgroups.borland.com...
>
> If You would have a Code-Example which shows how to use this API-function,
> I would be happy. I am not uset to API functions
>
> thanks tom
>
> "Wiebe Vos, Foxware" <foxware-bs@planet.nl> wrote:
>>Hi Tom,
>>
>>Use the (API) function MessageBoxEx().
>>With the wLanguageId parameter and MAKELANGID() macro
>>you can specify any language.
>>
>>Wiebe
>>
>>"tom" <tstucki@mcssoftware.ch> schreef in bericht
>>news:41e68ece$1@newsgroups.borland.com...
>>>
>>> Hi,
>>> I am using the Method MessageDlgPos often in my application.
>>>
>>> ret =
>>> MessageDlgPos(txt1,mtConfirmation,TMsgDlgButtons()<<mbYes<<mbAll<<mbCancel,0,0,0);
>>>
>>> the problem is, the caption's on the buttons of the dialog appear
>>> allways
>>> in english. How do I translate them?
>>>
>>> regards tom
>>>
>>
>>
>
Technical Details
Message-ID:
<41f01ab2@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41e68ece$1@newsgroups.borland.com> <41eacfcf@newsgroups.borland.com> <41ee25b8$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10297d,75311aee60bec3 X-Google-Attributes: gid10297d,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Wiebe Vos, Foxware" <foxware-bs@planet.nl> Newsgroups: borland.public.cppbuilder.internationalization References: <41e68ece$1@newsgroups.borland.com> <41eacfcf@newsgroups.borland.com> <41ee25b8$1@newsgroups.borland.com> Subject: Re: How to translate MessageDlgPos-Dialog Date: Thu, 20 Jan 2005 21:55:05 +0100 Lines: 55 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original NNTP-Posting-Host: 62.131.171.202 Message-ID: <41f01ab2@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1106254514 62.131.171.202 (20 Jan 2005 12:55:14 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!proxad.net!194.117.148.138.MISMATCH!pe2.news.blueyonder.co.uk!blueyonder!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail