Advertisement
Guest User

Gio PEt

a guest
Jun 29th, 2010
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.05 KB | None | 0 0
  1. {Hide Object Class_Tool to hide the class of the selected object.
  2. Copyright (C) 2010  Giovanni Petrolito}
  3.  
  4.  
  5. PROCEDURE HideObjectClass;
  6. VAR
  7.     h : HANDLE;
  8.     Object_class : STRING;
  9.    x, y :REAL;
  10.  
  11. BEGIN
  12.    
  13.    
  14.     GetPt(x, y);
  15.    h := PickObject(x, y);
  16.        
  17.         IF h<>NIL THEN BEGIN
  18.    
  19.             Object_class:= GetClass(h);
  20.             HideClass(Object_Class);
  21.            
  22.             SetTool(-240);
  23.         END;
  24. END;
  25. Run(HideObjectClass);
  26.  
  27.  
  28.  
  29. {This program is free software: you can redistribute it and/or modify
  30.     it under the terms of the GNU General Public License as published by
  31.     the Free Software Foundation, either version 3 of the License, or
  32.     (at your option) any later version.
  33.  
  34.     This program is distributed in the hope that it will be useful,
  35.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  36.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  37.     GNU General Public License for more details.
  38.  
  39.     You should have received a copy of the GNU General Public License
  40.     along with this program.  If not, see <http://www.gnu.org/licenses/>.}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement