Easy Q ...

On FormClose dialog:
if MessageDlg('Ohhh nooo...'),mtConfirm
[mbYes,mbNo],0)= mrYes then app.term.
else ...
I would like to display YES or NO in
another language.How do you do that?
SendoAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

SupWangCommented:
Hi Sendo,
Try this:

if Windows.MessageBox(self.handle, PChar('Ohhh nooo...'), PChar('Confirm'), MB_ICONQUESTION + MB_DEFBUTTON2+MB_APPLMODAL + MB_YESNO) = IDYES then
    Color := clRed
  else
    Color := clBlue;

//You can choose MessageBox and then press F1 get more information about the MessageBox function.

Regards, SupWang


0
SendoAuthor Commented:
It still has not answered my question...
I want YES and NO displayed in another language(Delphi seems to reckognize only IDYES or IDNO).
If I want the dialog box (let us say
German) with 'JA' and 'NEIN' (Yes/No)
.....how?
0
ITugayCommented:
Windows.MessageBox buttons apearence depend from operating system's language. If you have German version of Windows then you will see buttons in German. If you'd like to see button's captions in another language then write you own dialog form:)
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

SendoAuthor Commented:
No,no,no....
You can programme buttons because I have seen it.At least in VB,that is the case....
I know I can create my Dlg.,was just
try. som. else...
0
SendoAuthor Commented:
Hey Wang,
Var to your A...do post A...Points 4 U !
0
SupWangCommented:
Hi Sendo,
Nice to help you.

Regards, SupWang
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.