Advertisement
mixster

Untitled

Jun 29th, 2010
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. procedure OutsideBox(l,t,r,b, obj: integer);
  2. begin
  3. if tImages[obj].Left < l then
  4. tImages[obj].Left := l;
  5. if tImages[obj].Top < t then
  6. tImages[obj].Top := t;
  7. if tImages[obj].Left > r then
  8. tImages[obj].Left := r;
  9. if tImages[obj].Top > b then
  10. tImages[obj].Top := b;
  11. end;
  12. OutsideBox(0,0,-854, -765, IMG_LOC_MAP);
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. {if tImages[IMG_LOC_MAP].Left > 0 then
  23. tImages[IMG_LOC_MAP].Left := 0;
  24. if tImages[IMG_LOC_MAP].Top > 0 then
  25. tImages[IMG_LOC_MAP].Top := 0;
  26. if tImages[IMG_LOC_MAP].Left < -854 then
  27. tImages[IMG_LOC_MAP].Left := -854;
  28. if tImages[IMG_LOC_MAP].Top < -765 then
  29. tImages[IMG_LOC_MAP].Top := -765;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement