Script Writing With The Visual Interface Dialect

From DocBase

Jump to: navigation, search

VID Scripting

The minimal REBOL header, REBOL [ ] is illustrated here. load-gui is needed only in the development or alpha versions of R3. The basic format of a Visual Interface Dialect script is shown below.

   rebol [ ]
   load-gui
   view [ 
      button "Time" do [print now/time]
      button "Quit" do [quit]
   ]

The view function displays the window containing a panel of two button faces. The button faces are specified. No panel is specified however, since every window of the GUI display is itself a panel.

There are 2 do reactors, each with a block to be evaluated.

The next page Layout Control describes how faces may be organized.

Image:quit-time.jpg



Script Writing With The VID Dialect Pages

Chapters

Personal tools