View Single Post
  #5  
Old 07-02-2007, 10:21 AM
HolySheepy HolySheepy is offline
Registered User
Join Date: Apr 2007
Posts: 68
HolySheepy is on a distinguished road
quick and dirty:

PHP Code:
//#CLIENTSIDE
function onPlayerChats()
  {
  if( 
player.chat == "/dragtest" )
    {
    
DragTestWindow.destroy();
    new 
GuiWindowCtrlDragTestWindow )
      {
      
100;
      
width 100;
      
100;
      
height 100;
      
profile GuiBlueWindowProfile;
      new 
GuiTextListCtrlDragTestWindowList )
        {
        
profile GuiBlueTextListProfile;
        
10;
        
30;
        
seticonsize(32,32);
        
width 80;
        
height 80;
        
withaddRow0"test" ) )
          {
          
icon.drawImage(0,0,"block.png");
          
withicon )
            {
            
thiso.catcheventthis"onMouseDragged""onMDrag" );
            }
          }
        }
      }
    }
  }
 
function 
onMDrag(keymodifier,mousescreenx,mousescreeny)
  {
  
player.chat "drag";
  } 
i tried the catchevent within the row didnt work
i tried the catchevent within the guitextlist, works

i guess i have to use it in guitextlist ctrl and check mousex and y to get the row x.x
Reply With Quote