Форум » [x]Harbour » Allt+Enter » Ответить

Allt+Enter

fil: Всем привет ! В объекте типа MemoEdit() понадобился переход на новую строку нажатием Alt+Enter (a la Excel) Вопрос - как поймать это событие. SetKey(284, {||myfun()}) в данном случае не работает ?

Ответов - 6

PSP: В MemoEdit() вроде можно пользовательскую функцию назначить MEMOEDIT([<cString>], [<nTop>], [<nLeft>], [<nBottom>], [<nRight>], [<lEditMode>], [<cUserFunction>], [<nLineLength>], [<nTabSize>], [<nTextBufferRow>], [<nTextBufferColumn>], [<nWindowRow>], [<nWindowColumn>]) --> cTextBuffer Arguments ..... <cUserFunction> is the name of a user-defined function that executes when the user presses a key not recognized by MEMOEDIT() and when no keys are pending in the keyboard buffer. <cUserFunction> is specified as a character value without parentheses or arguments. Specifying false (.F.) for this argument displays <cString> and causes MEMOEDIT() to immediately terminate. If this argument is specified, the automatic behavior of MEMOEDIT() changes. Refer to the discussion below.

fil: В данном случае пользовательскую ф-я это блок кода bKeyDown. Но все это не пойдет т.к. Alt блокирует обработку нажатий клавиш. Думаю надо просто таймер написать и смотреть статус Alt

PSP: Смотрю сырцы и не вижу никакого bKeyDown. Поясните?


SergKis: Может тут http://clipper.borda.ru/?1-4-0-00001269-000-0-0-1562054357 Последний пост

fil: Смотрю сырцы и не вижу никакого bKeyDown. Поясните?[/quote Поясняю - FiveWin Объект типа MemoEdit() это MultiGet SergKis, спасибо ! Hook на контрол это мысль

PSP: fil пишет: Поясняю - FiveWin Теперь понятно.



полная версия страницы