Script Library: 1238 scripts
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Documentation for: button-image.r


Usage document for %button-image.r

1. Introduction to %button-image.r

This library script shows how easy it is to use images for VID face styles (see below for term explanations), in particular, buttons.

2. Using %button-image.r

Using this script is simple. Just DO it.

 >>do %button-image.r
 

or to execute this right out of the rebol.org library

 >>do http://www.rebol.org/cgi-bin/cgiwrap/rebol/download-a-script.r?script-name=button-image.r
 

3. What you can learn

3.1. Face Style

Face style is a REBOL term that you may have heard referred to as 'widget' or 'graphical element'. REBOL programmers may use just the word face, or just style when talking about 'window gadgets'. Modifiers are termed 'facets'.

Reading the REBOL/View Developer's Guide  will explain the preferred terms used for REBOL graphical programming.

3.2. DO-THRU

This sample script, uses LOAD-THRU. This handy extension will cache a copy of the data on your local system and if it exists in the cache, will not bother reading the network copy.

3.3. View facets

Looking through this script, you'll see how easy it is to place an image on a face. Just name an image! datatype after the face style and if possible it will be used as the image on that face. As with most VID facets, the image! is optional, and REBOL uses intelligent defaults for the graphical look for all face styles.

4. Credits

  • %button-image.r original author: Unknown
  • Usage document by Brian Tiffin, Library Team Apprentice, Last updated: 28-Apr-2007