Consultor Eletrônico



Kbase 14059: Map Keys Into Double-Byte Characters On 7.3 MS.Win Platform
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   10/05/1998
Map Keys Into Double-Byte Characters On 7.3 MS.Win Platform

In V6, we usually rely on protermcap to map function keys (F1 to F12)
into double-byte characters. If customer port V6 application to V7 MS.
Windows environment, they need to use different ways to do the key
mapping. One way to acheive this is to use 4GL triggers. The code
below maps F11 key to return the Japanese Kangji character "rabbit":
DEFINE VARIABLE x AS CHARACTER.
ON "F11" ANYWHERE DO:
x = CHR(39260).
DISPLAY x.
END.
ENABLE x WITH FRAME A.
WAIT-FOR WINDOW-CLOSE OF CURRENT-WINDOW.
If you use MS.Windows Character Map feature, the key value you get for
each character is most likely a Hex value. Progress CHR() function
takes only integers. Therefore you need to convert the Hex value into
integer before you can assign the Japanese character value to CHR()
funciton.

Progress Software Technical Support Note # 14059