Вниз
Скачать: CL | DM;

Русификация MessageDlg   Найти похожие ветки 

 
Алексей   (2004-02-02 07:20) [0]

Как русифицировать в MessageDlg надписи на кнопках (Yes - Да, No - Нет, Cancel - Отмена и т.д.)


 
RDen   (2004-02-02 07:27) [1]

MessageBox может использовать?


 
Gero ©   (2004-02-02 07:49) [2]

MessageBox будет русским только под рус. виндой. Если нужно, чтобы был русским всегда, можно создать свой MessageDlg. ИМХО, это оптимальный вариант


 
RDen   (2004-02-02 08:02) [3]

взгляни здесь http://www.sql.ru/forum/actualthread.aspx?bid=20&tid=41336&hl=


 
Goida ©   (2004-02-02 09:47) [4]

Самый, по моему, оптимальный вариант - это создание своего диалогового окна динамически:
...где-то в тексте программы...
with CreateMessageDialog("This is a message.",mtInformation,[mbYes,mbNo,mbCancel]) do
try
Caption := "InforBox";
(FindComponent("Yes") as TButton).Caption := "Да";
(FindComponent("No") as TButton).Caption := "Нет";
(FindComponent("Cancel") as TButton).Caption := "Отмена";
ShowModal;
finally
Free
end;

Вот и все.


 
WondeRu ©   (2004-02-02 12:01) [5]

Читай MSDN
MessageBoxEx
The MessageBoxEx function creates, displays, and operates a message box. The message box contains an application-defined message and title, plus any combination of predefined icons and push buttons. The wLanguageId parameter specifies which set of language resources is used for the predefined push buttons.

int MessageBoxEx(
HWND hWnd, // handle to owner window
LPCTSTR lpText, // text in message box
LPCTSTR lpCaption, // message box title
UINT uType, // message box style
WORD wLanguageId // language identifier
);


 
Семен Сорокин ©   (2004-02-02 12:28) [6]

и еще как вариант: скопируй себе в проект файл consts.pas и замени там строковые константы на нужные тебе.
Переоткрой проект, сделай билд - дерзай!



Страницы: 1 вся ветка

Скачать: CL | DM;



Память: 0.46 MB
Время: 0.016 c
9-38662
AQUALITY
2003-07-30 06:39
2004.02.13
Слежение за спец ударами


4-39125
vladelo
2003-12-10 19:13
2004.02.13
Hook на подключение к Internet


14-39031
Думкин
2004-01-26 06:29
2004.02.13
С днем рождения! 26 января.


14-38997
kaif
2004-01-27 03:26
2004.02.13
Фолио-WinСклад


14-38996
Knight
2004-01-13 21:52
2004.02.13
Когда же мелкософт, наконец ,это исправит?




   Наверх