CA-Visual Objects - Como hacer que me respondan las teclas de ....

 
Vista:

Como hacer que me respondan las teclas de ....

Publicado por Juan C. (40 intervenciones) el 11/03/2007 19:32:20
Hola a todos.
Alguien sabe como hacer que me respondan las teclas de funcion en una DataWindow. Necesito utilizar la tecla F4 en una DataWindow, por que los usuarios de un programa en clipper asi lo hacian, pero hasta el momento no he encontrado la forma de hacerlo.

Los eventos KeyUp() y KeyDown() no responden en las DataWindow, por otra parte utilizando el metodo Dispatch(), tampoco responde a las teclas de funcion, excepto a la F1 y ala F10, pero no a las demas.

A todo esto no deseo usar un menu para la DataWindow, pero la Accelerator Table tampoco me responde, pero la verdad no se como usarla.

Saludos....
Valora esta pregunta
Me gusta: Está pregunta es útil y esta claraNo me gusta: Está pregunta no esta clara o no es útil
0
Responder

RE:Como hacer que me respondan las teclas de ....

Publicado por iDesmet (13 intervenciones) el 27/03/2007 02:28:33
Hola Juan,

Este foro de CA-Visual Objects parece estar muerto. Te sugiero que te suscribas a comp.lang.clipper.visual-objects

Puedes entrar con el siguiente enlace:

http://groups.google.com/group/comp.lang.clipper.visual-objects/topics

Saludos

Mejores Deseos
iDesmet
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Como hacer que me respondan las teclas de ....

Publicado por Juan C. (40 intervenciones) el 31/03/2007 22:03:42
Si asi parece

Griacias por tu consejo, voy a ir a la URL que me señalas, gracias de antemano.

Juan C.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Como hacer que me respondan las teclas de ....

Publicado por Rogério Nicomede (2 intervenciones) el 20/04/2007 23:39:15
Olá, amigo. Não falo espanhol, mas achei uma forma de fazer o que você quer, utilizando hotkey.

Basta registrar a hot key desejada antes, chamando, com um método da janela desejada, a função registerhotkey:

RegisterHotKey(SELF:Handle(),1,MOD_ALT,VK_F2)
RegisterHotKey(SELF:Handle(),2,MOD_CONTROL,VK_F3)

Desta forma, quando essas teclas forem pressionadas (ALT F2 ou CONTROL F3), o method Dispatch da janela será chamado, contendo no evento a mensagem 786 (WM_HOTKEY) e o wParam = 1 ou 2, dependendo da tecla pressionada.

Espero ter ajudado !

In English :

Hi friend. I don´t speak Spanish, but I found a way to do what you wish, using hotkeys.

You just need to register the hotkey wished before, calling, with a method from the Window , the function registerhotkey, like this:

RegisterHotKey(SELF:Handle(),1,MOD_ALT,VK_F2)
RegisterHotKey(SELF:Handle(),2,MOD_CONTROL,VK_F3)

This way, when press theese keys (ALT F2 or CONTROL F3), the dispatch method from the window will be called, and the Event parameter will content the message parameter will content 786 (WM_HOTKEY) and the wParam property will content 1 or 2, depending from the pressed key.

I hope it helps you !
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Como hacer que me respondan las teclas de ....

Publicado por Rogério Nicomede (2 intervenciones) el 20/04/2007 23:42:31
Olá, amigo. Não falo espanhol, mas achei uma forma de fazer o que você quer, utilizando hotkey.

Basta registrar a hot key desejada antes, chamando, com um método da janela desejada, a função registerhotkey:

RegisterHotKey(SELF:Handle(),1,MOD_ALT,VK_F2)
RegisterHotKey(SELF:Handle(),2,MOD_CONTROL,VK_F3)

Desta forma, quando essas teclas forem pressionadas (ALT F2 ou CONTROL F3), o method Dispatch da janela será chamado, contendo no evento a mensagem 786 (WM_HOTKEY) e o wParam = 1 ou 2, dependendo da tecla pressionada.

Espero ter ajudado !

In English :

Hi friend. I don´t speak Spanish, but I found a way to do what you wish, using hotkeys.

You just need to register the hotkey wished before, calling, with a method from the Window , the function registerhotkey, like this:

RegisterHotKey(SELF:Handle(),1,MOD_ALT,VK_F2)
RegisterHotKey(SELF:Handle(),2,MOD_CONTROL,VK_F3)

This way, when press theese keys (ALT F2 or CONTROL F3), the dispatch method from the window will be called, and the Event parameter will content the message parameter will content 786 (WM_HOTKEY) and the wParam property will content 1 or 2, depending from the pressed key.

I hope it helps you !
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar

RE:Como hacer que me respondan las teclas de ....

Publicado por Juan C. (40 intervenciones) el 08/05/2007 04:58:49
Thank you very much. I'm goingo to try to do this, and I'm sorry because I have not seen your response. If I have a question I will put another note in this site

Thank you very much again.
Valora esta respuesta
Me gusta: Está respuesta es útil y esta claraNo me gusta: Está respuesta no esta clara o no es útil
0
Comentar