KEYBOARD keyword
Displays a keyboard on screen for user input. Each key is an image with a character. To read the key pressed, use ON KEY and _KEY.
Syntax
KEYBOARD "image", "chars", (x, y), "fontname", fontsize, color, "effect", effectvalue
Parameters
- image: image key to display (required)
- chars: chars to use as keys, default will add all letters. Special cases: a space jumps the size of a key, a pipe | starts a new line, a [s] adds a space key.
- x: integer of horizontal position
- y: integer of vertical position
- fontname: font to use
- fontsize: font size as integer
- color: color specified using hex value
- effect: possible effect
- effectvalue: integer value to customize the effect
Example
KEYBOARD "button_square_gray"
KEYBOARD "button_square_gray", "abcdef"
KEYBOARD "button_square_gray", "abcdef", (200, 100)
KEYBOARD "button_square_gray", "abcdef", (200, 100), "default"
KEYBOARD "button_square_gray", "abcdef", (200, 100), "default", 50
KEYBOARD "button_square_gray", "abcdef", (200, 100), "default", 50, #0C71FF
KEYBOARD "button_square_gray", "abcdef", (200, 100), "default", 50, #0C71FF, "fade-in"
KEYBOARD "button_square_gray", "abcdef", (200, 100), "default", 50, #0C71FF, "fade-in", 2000
DIM myKeyboard AS KEYBOARD
myKeyboard = KEYBOARD "button_square_gray", "1234567890"
KEYBOARD "button_square_gray", "abcdefghi|jklmnopqr|stuvwxyz| [s]"
Go back to list of Keywords.