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

Вниз

Change focus to the next control in focus   Найти похожие ветки 

 
Boguslaw   (2003-10-07 02:45) [0]

HEllo,

I want to do this :

procedure TForm1.KodRapKeyDown(Sender: PControl; var Key: Integer;
 Shift: Cardinal);
begin
if (Key = VK_RETURN) and (Shift = 0) then PostMessage(Sender.Handle,WM_NEXTDLGCTL, 0, 0);
end;

But it seems not working in KOl right ? How can I do the same ? I know I can change Key from VK_RETURN to VK_TAB but this way is not perfect (according to WinAPI this message also modifies the border around the control)


 
Vladimir Kladov   (2003-10-07 15:55) [1]

procedure TForm2.EditBox1KeyDown(Sender: PControl; var Key: Integer;
 Shift: Cardinal);
begin
 if Key = VK_RETURN then
 begin
   Key := 0;
   Form.GotoControl( VK_TAB );
 end;
end;



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

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

Наверх





Память: 0.44 MB
Время: 0.072 c
14-1080717976
Nikolay M.
2004-03-31 11:26
2004.04.25
Бильярдные клубы в Москве кто знает?


7-1078385298
Леприкон
2004-03-04 10:28
2004.04.25
Process32First, Process32Next...


1-1081345221
Переяслов Григорий
2004-04-07 17:40
2004.04.25
Меню с кнопкой закрытия документа


9-1067791476
DRON
2003-11-02 19:44
2004.04.25
Как динамически менять степень прозрачности под PowerDraw?


3-1080194760
ГАГН
2004-03-25 09:06
2004.04.25
DBComboBox





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
Английский Французский Немецкий Итальянский Португальский Русский Испанский