Главная страница
Top.Mail.Ru    Яндекс.Метрика
Текущий архив: 2004.02.13;
Скачать: 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 вся ветка

Текущий архив: 2004.02.13;
Скачать: CL | DM;

Наверх




Память: 0.47 MB
Время: 0.017 c
3-38677
dvg
2004-01-24 10:41
2004.02.13
Как создать алиас в BDE автоматически?


1-38858
dima_crt
2004-02-02 10:26
2004.02.13
ActivateHint


1-38770
_BasiL_
2004-02-03 14:24
2004.02.13
Console & ReadKey


14-39041
Goida
2004-01-25 00:10
2004.02.13
Работа с электронной почтой


1-38782
turonix
2004-02-03 14:22
2004.02.13
Корректное отображение окон при смене разрешения