home *** CD-ROM | disk | FTP | other *** search
/ BCI NET 2 / BCI NET 2.iso / archives / programming / languages / obrn-a_1.5_lib.lha / oberon-a / source2.lha / Source / 3rdParty / ARPUtil.mod < prev    next >
Encoding:
Text File  |  1995-01-26  |  1.3 KB  |  53 lines

  1. (*************************************************************************
  2.  
  3.      $RCSfile: ARPUtil.mod $
  4.   Description: Support for clients of arp.library
  5.  
  6.    Created by: fjc (Frank Copeland)
  7.     $Revision: 2.9 $
  8.       $Author: fjc $
  9.         $Date: 1995/01/26 00:27:25 $
  10.  
  11.   Copyright © 1994-1995, Frank Copeland.
  12.   This file is part of the Oberon-A Library.
  13.   See Oberon-A.doc for conditions of use and distribution.
  14.  
  15. *************************************************************************)
  16.  
  17. <* STANDARD- *> <* INITIALISE+ *> <* MAIN- *>
  18. <*$ CaseChk-  IndexChk- LongVars+ NilChk-  *>
  19. <*$ RangeChk- StackChk- TypeChk-  OvflChk- *>
  20.  
  21. MODULE ARPUtil;
  22.  
  23. IMPORT SYS := SYSTEM, i := Intuition, ARP;
  24.  
  25. (*------------------------------------*)
  26. (*
  27.   Simple wrapper for calling the ARP FileRequester.
  28. *)
  29.  
  30. PROCEDURE RequestFile * (
  31.   window        : i.WindowPtr;
  32.   hail          : ARRAY OF CHAR;
  33.   VAR file      : ARRAY OF CHAR;
  34.   VAR directory : ARRAY OF CHAR )
  35. : BOOLEAN;
  36.  
  37.   VAR fr : ARP.FileRequester;
  38.  
  39. <*$CopyArrays-*>
  40. BEGIN (* RequestFile *)
  41.   fr.hail      := SYS.ADR(hail);
  42.   fr.file      := SYS.ADR(file);
  43.   fr.dir       := SYS.ADR(directory);
  44.   fr.window    := window;
  45.   fr.funcFlags := {ARP.newIDCMP, ARP.doColor};
  46.   fr.flags2    := {ARP.longPath};
  47.   fr.leftEdge  := 0;
  48.   fr.topEdge   := 0;
  49.   RETURN (ARP.FileRequest (fr) # NIL);
  50. END RequestFile;
  51.  
  52. END ARPUtil.
  53.