Roxen.git
/
server
/
modules
/
graphics
/
gbutton.pike
version
»
Context lines:
10
20
40
80
file
none
3
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.
111
2004
/
06
/
30
16
:
59
:
03
mast
Exp $";
+
constant cvs_version = "$Id: gbutton.pike,v 1.
112
2005
/
10
/
24
09
:
52
:
48
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, ]); foreach(indices(args), string arg) if(has_value("target/onmousedown/onmouseup/onclick/ondblclick/" "onmouseout/onmouseover/onkeypress/onkeyup/"
-
"onkeydown"
/
"/"
,
lower_case(arg)))
+
"onkeydown
/style/class/id/accesskey/
"
,
+
"/"
+
lower_case(arg)
+ "/"
))
a_attrs[arg] = args[arg]; result = Roxen.make_container("a", a_attrs, result); } return 0; } } }