Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-12

messagedlg question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

LeVA

Hi!

I have a 'Save' button on a Form, and when clicked, I want to ask the user if he realy wants to save. I could do it by using MessageDlg('Confirmation','Are you sure?', mtConfirmation, [mbYes, mbNo], 0);

But, I'm living in Hungary, and I would like to change the Buttons caption (Yes -> Igen, No -> Nem). Is there another fuction, which displays a dialog (like MessageDlg), but I can specify the buttons caption in the calling, or it is possible to do this with this MessageDlg function too. Or I can not change this, so I have to teach my users english :))

Thanks!

Daniel

LeVA

Reply by email

Karl Brandt
to LeVA
LeVA wrote 14 lines
Hi! I have a 'Save' button on a Form, and when clicked, I want to ask the user if he realy wants to save. I could do it by using MessageDlg('Confirmation','Are you sure?', mtConfirmation, [mbYes, mbNo], 0); But, I'm living in Hungary, and I would like to change the Buttons caption (Yes -> Igen, No -> Nem). Is there another fuction, which displays a dialog (like MessageDlg), but I can specify the buttons caption in the calling, or it is possible to do this with this MessageDlg function too. Or I can not change this, so I have to teach my users english :))

You can translate most messages lcl displays using resource strings (see lcl/languages/README for instructions) or you can change the return values of TPromptDialog.GetDialogButtonText (PromptDialog.inc:127) according to you desire.

Karl brandt

Reply by email