1 <!-- Copyright 2002 Adam Megacz, see the COPYING file for licensing [LGPL] -->
4 <redirect target="self"/>
5 <preapply name="org.ibex.builtin.bevel"/>
10 _holdfrequency = function() { }
12 // FIXME: I don't know why I can't use an attribute for this; causes infinite loops
15 __Press1 = function(message) {
19 ibex.thread = function() {
20 ibex.sleep(holdfrequency);
22 if (ibex.button == 1 and mouseinside) hold = true;
23 ibex.sleep(holdfrequency);
26 root._Release1 = function() {
27 if (mouseinside and owned) click = true;
29 root.__Release1 = null;
36 _style = function(s) { arguments.cascade(s); sync_(); }
38 _Enter = function() { sync_(); }
39 _Leave = function() { sync_(); }
40 _press = function() { owned = true; sync_(); }
41 _release = function() { owned = false; sync_(); }
43 var sync_ = function() {
44 if (mouseinside and owned) depth = "flat";
45 else if (mouseinside) depth = "up";