|View script||License||Download documentation as: HTML or editable||Download script||History|
Script Library: 1213 scripts
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.
or to execute this right out of the rebol.org library
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.
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.