langs a-z
This commit is contained in:
parent
db842d013d
commit
d066446780
11389 changed files with 98361 additions and 1020 deletions
30
Task/Keyboard-macros/REBOL/keyboard-macros.rebol
Normal file
30
Task/Keyboard-macros/REBOL/keyboard-macros.rebol
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
REBOL [
|
||||
Title: "Keyboard Macros"
|
||||
Date: 2009-12-14
|
||||
Author: oofoe
|
||||
URL: http://rosettacode.org/wiki/Keyboard_macros
|
||||
]
|
||||
|
||||
; Application specific keyboard bindings using REBOL VID
|
||||
; dialect. Implementation of the "Averageman" calculator --
|
||||
; See http://www.atariarchives.org/bcc2/showpage.php?page=63 for details.
|
||||
|
||||
view layout [
|
||||
style btn button coal 46
|
||||
across
|
||||
|
||||
display: h1 100 red maroon right "" return
|
||||
|
||||
; Key shortcuts are specified as character arguments to widget
|
||||
; descriptions in the layout.
|
||||
|
||||
btn "1" #"1" [set-face display "1"]
|
||||
btn "+" #"+" [set-face display ""]
|
||||
return
|
||||
|
||||
pad 54
|
||||
btn "=" #"=" [set-face display "3"]
|
||||
|
||||
pad 1x100 return
|
||||
text "(c) 1977 G. Beker"
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue