Главная страница
    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.03 c
11-1063904334
Boguslaw
2003-09-18 20:58
2004.04.25
What about English forum ?


4-1077969851
Vlad25
2004-02-28 15:04
2004.04.25
GetKeyboardState


14-1080611561
Думкин
2004-03-30 05:52
2004.04.25
С днем рождения! 30 марта


6-1077521717
Val
2004-02-23 10:35
2004.04.25
Как закачать рисунок?


4-1077311732
Leoton
2004-02-21 00:15
2004.04.25
Помогите советом по DebugAPI и архитектуре Windows





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