You can use a ui element of type ‘customView’ (the constructor name is : Custom)
myBtn = myContainer.add(“customView”);
or, within a resource string:
res = “group{…,\
myBtn : Custom{type: ‘customView’},\
….
}”;
They can be attached all sorts of mouse event listeners, nothing broken.
But i think that if instead you take the ‘customButton’ type, ‘mouseup’ and ‘click’ are also broken.
Xavier