Hola, buenos dias.
Tengo un problema con el IDE de Lazarus, la tecla AltGr no funciona. No puedo escribir caracteres como {}@#, etc.
Al principio pense que era un problema de configuracion, pero investigando el tema, me di cuenta que solo ocurria en el editor de codigo ( que es SynEdit), y si ponia un componente SynEdit en un proyecto.
Todos los otros controles que admiten entradas de texto aceptan estas entradas.
Investigando mas, puse varios breaks en los programas, para ver por donde pasaba, hasta que poniendolo en la unidad SynEdit, en la funcion TCustomSynEdit.KeyDown, vi que al hacer un break en la funcion, y despues reanudar la misma, aparecia el caracter en el editor, por haber detenido y reanudado la ejecucion solamente.
Pensando un poco, hice lo siguiente, inserte un synedit en un form, en la propiedad onKeyDown del mismo, puse una funcion que retardaba la ejecucion( con un bucle for de 50 iters, y una llamada a refresh), y los caracteres especiales aparecian en el componente synedit.
Porque??.
Mi ambiente de trabajo es Linux Ubuntu 10.04 LTS, Lazarus 0.9.28.2-8Ubuntu 1 b, en el mismo ordenador tengo instalado Windows Vista, tambien con Lazarus, y en ese entorno no tengo ningun problema.
Mi teclado es un inalambrico Microsoft Wireless MultiMedia Keyboard 1.1, y esta configurado en Ubuntu como Microsoft Wireless Multimedia Keyboard 1.0A.
En todas las demas aplicaciones en que trabajo bajo Ubuntu, y en las demas opciones del IDE de Lazarus, funciona bien.
Alguien puede darme algo de luz sobre el tema?.
Saludos : Gaby
I am Sorry for my bad English.
Hello, good morning. I have a problem with the IDE of Lazarus, the AltGr key does not work. I cannot write characters like {} @#, etc.
At the beginning I think that was a configuration problem, but investigating the subject, I realized that only it happened in the code publisher (that is SynEdit), and in a component synedit that I put in a form in a project.
All the other controls that admit text entrances accept the characters {}[, etc.
Investigating but, I put several breaks in the programs, to see through where it happened, until putting it in the SynEdit unit, the TCustomSynEdit.KeyDown function, I saw that when doing brake in the function, and later to resume the same, I shaw the character in the publisher, by to have stopped and to have resumed the execution only.
Thinking a little, I did the following thing, inserts synedit in form, the property onKeyDown of the same, I put a function that slowed down the execution (with a for loop of 50 iters, and one call to refresh), and the special characters are writted in the component synedit.
Because??. My environment of work is Linux Ubuntu 10,04 LTS, Lazarus 0.9.28.2 - 8Ubuntu 1 b, in the same computer I have installed Vista Windows, also with Lazarus, and in that environment I do not have any problem.
My keyboard is wireless a Microsoft Wireless Multimedia Keyboard 1,1, and this formed in Ubuntu like Microsoft Wireless Keyboard Multimedia 1.0A.
In all the other applications in which work under Ubuntu, and the other options of the IDE of Lazarus, works well. Somebody can give something me of light on the subject. Greetings: Gaby