3 (* Embedding xpm data into an ML file *)
6 (* width height num_colors chars_per_pixel *)
15 "....................";
16 "....................";
17 "....................";
18 "...........###......";
19 "..........#...#.#...";
20 "...............##...";
21 "...###........###...";
22 "..#yiy#######.......";
23 "..#iyiyiyiyi#.......";
24 "..#yiyiyiyiy#.......";
25 "..#iyiy###########..";
26 "..#yiy#sssssssss#...";
27 "..#iy#sssssssss#....";
28 "..#y#sssssssss#.....";
29 "..##sssssssss#......";
30 "..###########.......";
31 "....................";
32 "....................";
33 "...................." |]
38 let w = GWindow.window ~border_width:2 () in
40 let hbox = GPack.hbox ~spacing:10 ~packing:w#add () in
41 let pm = GDraw.pixmap_from_xpm_d ~data:openfile ~window:w () in
42 GMisc.pixmap pm ~packing:hbox#add ();
43 GMisc.label ~text:"Embedded xpm" ~packing:hbox#add ();
45 w#connect#destroy ~callback:Main.quit;