[lazarus] messagedlg question

Karl Brandt pascal at sendnet.com.br
Sat Dec 27 21:09:06 EST 2003


LeVA wrote:
> 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






More information about the Lazarus mailing list