[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 217
  • Last Modified:

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?
0
Sendo
Asked:
Sendo
  • 3
  • 2
1 Solution
 
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
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
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

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now