View Single Post
  #2  
Old 10-11-2011, 08:26 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Set a variable on the control, then access it later. The first parameter will be the object that called it.

PHP Code:
new GuiShowImgCtrl("Tool_RandomImage") {
  
width = 32;
  
height = 32;
  
  
image = "block.png";
  
this.title = "A random staff block";
  
thiso.catchEvent(this, "onMouseEnter", "onHoverOverTool");
} 
PHP Code:
function onHoverOverTool(temp.control) {
  
Tool_SelectedText.text = temp.control.title;
} 
__________________
Reply With Quote