1 <!-- Copyleft 2004 - see COPYING for details [LGPL] -->
3 <ibex xmlns="org.ibex.theme.win2k">
5 <name>Basic Button</name>
6 <desc>Creates a button widget</desc>
8 Put to the text property of a button for a basic label,
9 or simply wrap the button around more complex content
14 <margin redirect="$content" shrink="true">
19 <ui:box id="content" />
25 redirectTo($content, "text", "textcolor");
26 redirectTo($pad, "padding", "padding-left", "padding-right", "padding-top", "padding-bottom");
27 redirectTo($widget, "action", "enabled", "fill");
29 if ($widget.margin) thisbox.margin = $widget.margin;
30 if ($widget.padding) $pad.padding = $widget.padding;
32 $widget.textcolor ++= function(v) { $content.textcolor = v; }