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.112 2005/10/01 14:56:20 jonasw Exp $"; + constant cvs_version = "$Id: gbutton.pike,v 1.113 2005/10/24 09:50:16 anders 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:943:       // Make button clickable if not dimmed    if(args->href && !new_args->dim)    {    mapping a_attrs = ([ "href" : args->href,    "onfocus" : "this.blur();" ]);       foreach(indices(args), string arg)    if(has_value("/target/onmousedown/onmouseup/onclick/ondblclick/"    "onmouseout/onmouseover/onkeypress/onkeyup/" -  "onkeydown/style/class/", +  "onkeydown/style/class/id/accesskey/",    "/" + lower_case(arg) + "/"))    a_attrs[arg] = args[arg];       result = Roxen.make_container("a", a_attrs, result);    }       return 0;    }    }   }