Link to home
Start Free TrialLog in
Avatar of Sendo
Sendo

asked on

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?
Avatar of SupWang
SupWang

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


Avatar of Sendo

ASKER

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?
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:)
Avatar of Sendo

ASKER

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...
Avatar of Sendo

ASKER

Hey Wang,
Var to your A...do post A...Points 4 U !
ASKER CERTIFIED SOLUTION
Avatar of SupWang
SupWang

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial