![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Как узнать отмену InputBox?
mmms © (2005-07-25 16:45:00)По любому, что жмешь Ok, что Cansel получаешь строку, а можно ли узнать, что нажал пользователь?
Anatoly Podgoretsky (2005-07-25 17:03:00) [1]Что такое страшное ты нажал?
begin...end (2005-07-25 16:49:00) [2]И обратите внимание вот на что: Use the InputBox function when there is a default value that should be used when the user chooses the Cancel button (or presses Esc) to exit the dialog. If the application needs to know whether the user chooses OK or Cancel, use the InputQuery function instead.
Юрий Зотов (2005-07-25 16:49:00) [3]Нажал F1 - за 10 секунд нашел ответ.
If the user chooses the Cancel button, InputBox returns the default value. If the user chooses the OK button, InputBox returns the value in the edit box.
Use the InputBox function when there is a default value that should be used when the user chooses the Cancel button (or presses Esc) to exit the dialog. If the application needs to know whether the user chooses OK or Cancel, use the InputQuery function instead.
begin...end (2005-07-25 16:46:00) [4]If the user chooses the Cancel button, InputBox returns the default value. If the user chooses the OK button, InputBox returns the value in the edit box.