Roxen.git/server/modules/graphics/gbutton.pike:1:
// Button module. Generates graphical buttons for use in Roxen config
// interface, Roxen SiteBuilder and other places.
//
// Copyright © 1999-2000 Roxen IS. Author: Jonas Walldén, <jonasw@roxen.com>
// Usage:
//
// <gbutton
// bgcolor -- background color inside/outside button
- // bordercolor -- button border color
+
// textcolor -- button text color
// href -- button URL
// alt -- alternative button alt text
// border -- image border
// state -- enabled|disabled button state
// textstyle -- normal|consensed text
// icon-src -- icon reference
// icon-data -- inline icon data
// align -- left|center|right text alignment
// align-icon -- left|center-before|center-after|right icon alignment
// >Button text</gbutton>
//
// Alignment restriction: when text alignment is either left or right, icons
// must also be aligned left or right.
- constant cvs_version = "$Id: gbutton.pike,v 1.50 2000/06/01 14:36:54 nilsson Exp $";
+ constant cvs_version = "$Id: gbutton.pike,v 1.51 2000/06/05 14:59:18 jonasw Exp $";
constant thread_safe = 1;
#include <module.h>
inherit "module";
inherit "roxenlib";
roxen.ImageCache button_cache;
constant module_type = MODULE_PARSER;
Roxen.git/server/modules/graphics/gbutton.pike:68: Inside #if defined(manual)
</attr>
<attr name='bgcolor' value='color'>
Background color inside and outside button.
<ex>
<gbutton bgcolor='lightblue'>Background</gbutton>
</ex>
</attr>
- <attr name='bordercolor' value='color'>
- Button border color.
- <ex>
- <gbutton bordercolor='red'>Border</gbutton>
- </ex>
- </attr>
-
+
<attr name='textcolor' value='color'>
Button text color
<ex>
- <gbutton textcolor='#ff6600'> Text</gbutton>
+ <gbutton textcolor='#ff6600'>Text</gbutton>
</ex>
</attr>
<attr name=frame-image value='path'>
Use this XCF-image as a frame for the button. The image is required
to have at least the following layers: background, mask and frame.
More information on how to create frame images can be found in the
Roxen documentation; Web Site Creator/Graphical tags section.
<ex>
<gbutton frame-image='internal-roxen-tabframe'>foo</gbutton>
</ex>
</attr>
- <attr name='border_image' value='path'>
- Use this image as border.
- </attr>
-
+
<attr name='alt' value='string'>
Alternative button and alt text.
</attr>
<attr name='href' value='uri'>
Button URI.
</attr>
<attr name='textstyle' value='normal|condensed'>
Set to <att>normal</att> or <att>condensed</att> to alter text style.
Roxen.git/server/modules/graphics/gbutton.pike:175: Inside #if defined(manual)
</attr>
<attr name='extra-mask-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
</attr>
<attr name='extra-frame-layers' value='[''],[first|last],[selected|unselected],[background|mask|frame|left|right]'>
<ex>
- <gbutton border_image='gbutton.xcf' alt='foo'>bu</gbutton>
+ <gbutton frame-image='gbutton.xcf' alt='foo'>bu</gbutton>
</ex>
<ex>
<gbutton alt='Edit' bgcolor='#aeaeae'
extra-background-layers='unselected background,last unselected background,last background'
extra-frame-layers='unselected frame,last unselected frame,last frame'
extra-layers='unselected,last unselected,last'
extra-left-layers='unselected left,last unselected left,last left'
extra-mask-layers='unselected mask,last unselected mask,last mask'