Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "KOL";
Текущий архив: 2003.12.23;
Скачать: [xml.tar.bz2];

Вниз

TKOLButton and Enter key   Найти похожие ветки 

 
Boguslaw   (2003-04-08 18:35) [0]

Would TKOLButton response for ENTER key like in Delphi wihout any changes ?


 
Кладов   (2003-04-08 22:52) [1]

What changes you about?
For lazy people (as me) AllBtnReturnClick property exists.
But the better way is to select all the buttons on a form and to assign OnKey... event handler, where to replace #13 onto #32 on the fly, passing it for further handling. (The better because it does not affect Applet.OnMessage).


 
Boguslaw   (2003-04-08 23:06) [2]

Well, maybe I do something wrong , but after setting AllBtnReturnClick and also Tabulate for KOl form TKOLButtons still do not response for ENTER pressed when are focused.I think that this is standard behaviour in Delphi (Am I wrong ?) In KOL trick with OnChar event or OnKeyDown works but shouldn"t it be automagically supported ?


 
Кладов   (2003-04-10 17:57) [3]


> setting AllBtnReturnClick and also Tabulate for KOl form
>

If you have several forms, correct way is to set AllButtonReturnClick for TKOLApplet on the main form.

It is not too hard to add this code in IFDEF-ENDIF brackets. So, if a programmer want that _all_ the buttons respond to ENTER just like to SPACE, he should just add a conditional symbol like ALL_BUTTONS_RESPOND_TO_ENTER. May be, I do this way too. It will not affect Applet.OnMessage, and sometimes this is important.


 
Boguslaw   (2003-04-10 21:07) [4]

Good idea.



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

Форум: "KOL";
Текущий архив: 2003.12.23;
Скачать: [xml.tar.bz2];

Наверх





Память: 0.44 MB
Время: 0.007 c
14-75324
chs2r
2003-12-01 13:28
2003.12.23
Объясните мне пожалуйста, что такое пиринговые сети.


3-75088
Sacred
2003-11-30 00:28
2003.12.23
Автозаполнение!


1-75211
Igit
2003-12-03 12:09
2003.12.23
Постоянно сжирает память


4-75450
Sfagnum
2003-10-23 12:04
2003.12.23
Значение SES_EMULATESYSEDIT


1-75177
Pilot
2003-12-09 18:47
2003.12.23
Суммирование чисел





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский