Roxen.git / server / modules / graphics / gbutton.pike

version» Context lines:

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.105 2004/06/05 15:19:45 _cvs_dirix Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.106 2004/06/06 11:03:59 _cvs_stephen Exp $";   constant thread_safe = 1;      #include <module.h>   #include <stat.h>   inherit "module";      core.ImageCache button_cache;   int do_ext;      constant module_type = MODULE_TAG;
Roxen.git/server/modules/graphics/gbutton.pike:158: 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='/*/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>