How can I translate the captions of the TOpenDialog/TSaveDialog dialogs in Delphi 11.1.5?

122 Views Asked by At

I could translate the Captions[] and ButtonCaptions[] used by MessageDlg if I set the appropriate constants in the Vcl.Consts.pas. But as I can see there is no such an easy solution like this for TOpenDialog and TSaveDialog. These are Windows controls and something more tricky solution needed. I tried the FindComponent on the created dialog and the fFileDialog in the created wrapper (during the Execute call). But the debugger says : the ComponentCount is 0 for both components.

How could I translate these dialogs?

It is not a problem to modify the Vcl.Dialogs.pas because my program uses a copy of this (I had to modify it yet for another reasons)

0

There are 0 best solutions below