1 <!-- Copyleft 2004 - see COPYING for details [LGPL] -->
3 <ibex xmlns:lib="ibex.lib" xmlns="org.ibex.theme.win2k">
5 Author: Charles Goodwin
8 <lib:scrollbar amount="20">
11 var movefunc = function(v) { mousepos = $track.mouse[pos]; }
18 orient ++= function(v) {
21 thisbox[flip(shr)] = true;
24 $backimg.fill = .image.arrowleft;
25 $nextimg.fill = .image.arrowright;
28 $backimg.fill = .image.arrowup;
29 $nextimg.fill = .image.arrowdown;
34 if (slave) return 0.9 * (slave[dim]);
38 /* FIXME: fix erratic showing of $shadow
39 $track.action ++= function(v) {
40 if ($thumb[pos] > mousepos) {
41 $shadow[dim] = $thumb[pos];
45 $shadow[dim] = $track[dim] - $thumb[dim] - $thumb[pos];
46 $shadow[pos] = $thumb[dim] + $thumb[pos];
50 $track.repeat ++= function(v) {
51 if (v) Move ++= movefunc;
52 else Move --= movefunc;
57 $track.Press1 ++= function(v) { if ($thumb.mouse.inside) return true; }
59 <button id="back" fill="#d0d4c8" width="16" height="16" repeats="true" shrink="true">
61 <ui:box id="backimg" shrink="true" />
63 <clickable id="track" enabled="true" fill=".image.scrollbg" repeats="true">
64 <ui:box id="shadow" align="topleft" fill="#888888" packed="false" visible="false" />
65 <bevel id="thumb" align="topleft" fill="#d0d4c8" form="up" packed="false" />
67 <button id="next" fill="#d0d4c8" width="16" height="16" repeats="true" shrink="true">
69 <ui:box id="nextimg" shrink="true" />