View Single Post
  #2  
Old 12-22-2009, 09:05 PM
fowlplay4 fowlplay4 is offline
team canada
fowlplay4's Avatar
Join Date: Jul 2004
Location: Canada
Posts: 5,200
fowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond reputefowlplay4 has a reputation beyond repute
Something like this would probably suffice, kind of a hack fix though.

PHP Code:
//#CLIENTSIDE

// Usage: getMaxScrollPos(someScrollGUI);
// Returns: {maxhorizontalpos, maxverticalpos}


function getMaxScrollPos(obj) {
  
// Record Original Scroll Position 
  
temp.original obj.scrollpos.tokenize(); 
  
// Scroll to the Limits 
  
obj.scrolldelta(0x7fffffff0x7fffffff);
  
// Record Actual Limits 
  
temp.max obj.scrollpos.tokenize(); 
  
// Scroll back to Original Position 
  
obj.scrollto(temp.original[0], temp.original[1]);
  
// Return Actual Limits 
  
return temp.max

__________________
Quote:

Last edited by fowlplay4; 12-22-2009 at 09:15 PM..
Reply With Quote