Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
|
|
@ -0,0 +1,27 @@
|
|||
REBOL [
|
||||
Title: "Simple Windowed Application"
|
||||
URL: http://rosettacode.org/wiki/Simple_Windowed_Application
|
||||
]
|
||||
|
||||
clicks: 0
|
||||
|
||||
; Simple GUI's in REBOL can be defined with 'layout', a
|
||||
; special-purpose language (dialect, in REBOL-speak) for specifying
|
||||
; interfaces. In the example below, I describe a gradient background
|
||||
; with a text label and a button. The block in the button section
|
||||
; details what should happen when it's clicked on -- increment the
|
||||
; number of clicks and update the label text.
|
||||
|
||||
; The 'view' function paints the layout on the screen and listens for
|
||||
; events.
|
||||
|
||||
view layout [
|
||||
backdrop effect [gradient 0x1 black coal]
|
||||
|
||||
label: vtext "There have been no clicks yet."
|
||||
|
||||
button maroon "click me" [
|
||||
clicks: clicks + 1
|
||||
set-face label reform ["clicks:" clicks]
|
||||
]
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue