Tried making the child controls inactive?
And,
PHP Code:
function onCreated() {
new GuiBitmapBorderCtrl("ItemBox1") {
this.profile = GuiGrayBitmapBorderProfile;
this.canmove = true;
this.canresize = false;
this.x = 100;
this.y = 100;
this.width = 64;
this.height = 64;
this.archname = "ironsword";
this.count = 1;
this.fullname = "Iron Sword";
new GuiShowImgCtrl("ItemBox1Img1") {
this.x = 15;
this.y = 15;
this.width = 32;
this.height = 32;
this.image = "mud_sword.png";
thiso.catchevent(this.name, "onMouseEnter", "showtooltip");
thiso.catchevent(this.name, "onMouseLeave", "hidetooltip");
}
new GuiShowImgCtrl("ItemBox1Img2") {
this.x = 46;
this.y = 15;
this.width = 32;
this.height = 32;
this.image = "mud_sword2.png";
thiso.catchevent(this.name, "onMouseEnter", "showtooltip");
thiso.catchevent(this.name, "onMouseLeave", "hidetooltip");
}
}
}
function showtooltip(control) {
echo("show");
}
function hidetooltip() {
echo("hide");
}
I don't see why you make the script catch the events when your mouse enter/leave the bitmapborder control, unless this is something you want.. if so, ignore this xD