1 (***********************************************************************)
3 (* MLTk, Tcl/Tk interface of Objective Caml *)
5 (* Francois Rouaix, Francois Pessaux, Jun Furuse and Pierre Weis *)
6 (* projet Cristal, INRIA Rocquencourt *)
7 (* Jacques Garrigue, Kyoto University RIMS *)
9 (* Copyright 2002 Institut National de Recherche en Informatique et *)
10 (* en Automatique and Kyoto University. All rights reserved. *)
11 (* This file is distributed under the terms of the GNU Library *)
12 (* General Public License, with the special exception on linking *)
13 (* described in file LICENSE found in the Objective Caml source tree. *)
15 (***********************************************************************)
20 let cvs = Canvas.create win [];;
22 let t = Label.create cvs [Text "File name"];;
31 [Title "SAVE FILE TEST";
32 DefaultExtension ".foo";
33 FileTypes [ { typename= "just test";
34 extensions= [".foo"; ".test"];
35 mactypes= ["FOOO"; "BARR"] } ];
36 InitialDir Filename.temp_dir_name;
37 InitialFile "hogehoge" ] in
38 Label.configure t [Text s])];;
45 let s = getOpenFile [] in
46 Label.configure t [Text s])];;
52 (function _ -> closeTk (); exit 0)];;
54 pack [cvs; q; bb; b; t] [];;