View script | License | Download documentation as: HTML or editable | Download script | History |
[0.046] 11.902k
Documentation for: button-image.rUsage document for %button-image.r1. Introduction to %button-image.rThis 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.rUsing 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 learn3.1. Face StyleFace 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-THRUThis 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 facetsLooking 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
|