Traduire un TOpenPictureDialog
Bonjour, dans un projet qui sera traduit dans plusieurs langues j'utilise le composant TOpenPictureDialog pour ouvrir mes images. Le problème c'est que j'ai BDS 2006 en anglais et je ne trouve pas de moyen simple de changer le texte par défaut: "Preview", "(None)", etc...
Le seul texte facilement modifiable est celui du Title.
Le seul moyen que je vois c'est lors de l'évenement WM_INITDIALOG de changer le texte (SetWindowText) qui se trouve à ces emplacements:
Citation:
chx1 The read-only check box
cmb1 Drop-down combo box that displays the list of file type filters
stc2 Label for the cmb1 combo box
cmb2 Drop-down combo box that displays the current drive or folder, and that allows the user to select a drive or folder to open
stc4 Label for the cmb2 combo box
cmb13 Drop-down combo box that displays the name of the current file, allows the user to type the name of a file to open, and select a file that has been opened or saved recently. This is for earlier Explorer-compatible applications without hook or dialog template. Compare with edt1.
edt1 Edit control that displays the name of the current file, or allows the user to type the name of the file to open. Compare with cmb13.
stc3 Label for the cmb13 combo box and the edt1 edit control
lst1 List box that displays the contents of the current drive or folder
stc1 Label for the lst1 list box
IDOK The OK command button (push button)
IDCANCEL The Cancel command button (push button)
pshHelp The Help command button (push button)
Par contre, je ne connais pas les "identifiers" du TOpenPictureDialog. J'imagine que sa se trouve dans le fichier d'entête (.h).
Si vous avez dejà fait cette opération, ou que vous avez des suggestions. Je suis preneur.
Merci!