rebol.htm 766 B

123456789101112131415161718192021222324252627282930
  1. <h1> REBOL/View 2.7</h1>
  2. <code>
  3. REBOL [] view layout [ h2 "Demo" area btn "Click Me" ]
  4. the-form: layout [
  5. across space 2x8
  6. style label vtext bold 100x24 middle right
  7. style bar box 306x3 edge [size: 1x1 color: water effect: 'bevel]
  8. backcolor water bar return
  9. label "Full Name" f1: field 200 return
  10. pad 120 c1: check vtext "Programmer" bold return
  11. pad 120 c2: check vtext "Operator" bold return
  12. label "Email Address" f2: field return
  13. label "Phone Number" f3: field return
  14. label "Your Comments" f4: area wrap 200x100 return
  15. bar return
  16. pad 40 space 100
  17. btn-enter 60 "Submit" [
  18. unview/only the-form
  19. show-results
  20. ]
  21. btn-cancel 60 "Close" [unview/only the-form]
  22. ]
  23. the-form/effect: [gradient 0x1]
  24. </code>