Keyboard Control

Purpose:

returns the handle of a new Keyboard control.

Syntax:

key = Keyboard(type,x,y,width,height)

key.methodname where methodname is one of the followiing

lowervalues
shiftvalues
altvalues
index

 

Comments:

Below we are defining two keyboards,  one stock, one custom

Example:



key = Keyboard("US",10,10, w*3/4, 600) // stock keyboard

keyhex = Keyboard("US",20,620,w/2,400,4,4) // custom keyboard, 4 rows, 4 cols


keyhex.lowervalues = "0123456789ABCDEF"

keyhex.colorbackground = rgb(4,124,200)
keyhex.colortext = WHITE
key.actiondown = "dk"

 

dk: // keyboard actiondown event called
print  key.text // send key to editor
return