Roxen.git/server/modules/graphics/gbutton.pike:20:
// icon-data -- inline icon data
// align -- left|center|right text alignment
// align-icon -- left|center-before|center-after|right icon alignment
// valign-icon -- above|middle|below icon vertical 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.102 2004/05/27 16:19:35 _cvs_stephen Exp $";
+ constant cvs_version = "$Id: gbutton.pike,v 1.103 2004/05/27 21:24:37 _cvs_stephen Exp $";
constant thread_safe = 1;
#include <module.h>
inherit "module";
roxen.ImageCache button_cache;
int do_ext;
constant module_type = MODULE_TAG;
constant module_name = "Graphics: GButton";
Roxen.git/server/modules/graphics/gbutton.pike:157: Inside #if defined(manual)
<row><c><p>center-before</p></c><c><p>Center the icon before the text. Requires the <i>align='center'</i> attribute.</p></c></row>
<row><c><p>center-after</p></c><c><p>Center the icon after the text. Requires the <i>align='center'</i> attribute.</p></c></row>
<row><c><p>right</p></c><c><p>Place icon on the right side of the text.</p></c></row>
</xtable>
<ex>
<gbutton width='150' align-icon='center-before' icon-src='internal-roxen-help'>Roxen 2.0</gbutton>
</ex>
<ex>
<gbutton width='150' align='center' align-icon='center-after'
- icon-src='/%01/help'>Roxen 2.0</gbutton>
+ icon-src='/*/help'>Roxen 2.0</gbutton>
</ex>
</attr>
<attr name='valign-icon' value='above|middle|below'><p>
Set icon vertical alignment. Requires three horizontal guidelines in the
frame image. If set to <i>above</i> the icon is placed between the first
and second guidelines and the text between the second and third ones. If
set to <i>below</i> the placement is reversed. Default value is
<i>middle</i>.</p>
</attr>