Advertisement
Guest User

Gio PEt

a guest
Jun 28th, 2010
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pascal 1.11 KB | None | 0 0
  1. {Create_Viewport_Crop. Tool to create a Viewport Crop.  
  2. Copyright (C) 2010  Giovanni Petrolito}
  3.  
  4. Procedure Create_View_Port;
  5.  
  6. var
  7. x,y,x1,y1,xo,yo:real;
  8. h,h2,hv,hl: handle;
  9.  
  10. begin
  11. DSelectAll;
  12. NameClass('Keine');
  13.  
  14. GetRect(x,y,x1,y1);
  15. Rect(x,y,x1,y1);
  16.  
  17. h:=LNewObj;
  18. hl:=MakePolyline(h);
  19. DelObject(h);
  20. SetClass(hl,'Keine');
  21. SetFPat(hl,0);
  22. SetLS(hl,1);
  23. SetPenFore(hl,0,0,0);
  24. DoMenuTextByName('Create Viewport',0);
  25.  
  26.  
  27. end;
  28. run(Create_View_Port);
  29.  
  30.  
  31. {This program is free software: you can redistribute it and/or modify
  32.     it under the terms of the GNU General Public License as published by
  33.     the Free Software Foundation, either version 3 of the License, or
  34.     (at your option) any later version.
  35.  
  36.     This program is distributed in the hope that it will be useful,
  37.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  38.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  39.     GNU General Public License for more details.
  40.  
  41.     You should have received a copy of the GNU General Public License
  42.     along with this program.  If not, see <http://www.gnu.org/licenses/>.}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement