View Single Post
  #2  
Old 09-21-2008, 04:07 AM
Chompy Chompy is offline
¯\(º_o)/¯
Chompy's Avatar
Join Date: Sep 2006
Location: Norway
Posts: 2,815
Chompy is just really niceChompy is just really niceChompy is just really nice
Send a message via MSN to Chompy
Tried making the child controls inactive?


And,

PHP Code:
function onCreated() {
   new 
GuiBitmapBorderCtrl("ItemBox1") {
     
this.profile GuiGrayBitmapBorderProfile;
     
this.canmove true;
     
this.canresize false;
     
this.100;
     
this.100;
     
this.width 64;
     
this.height 64;
     
this.archname "ironsword";
     
this.count 1;
     
this.fullname "Iron Sword";
     new 
GuiShowImgCtrl("ItemBox1Img1") {
       
this.15;
       
this.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.46;
       
this.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
__________________
Reply With Quote