X-Git-Url: http://matita.cs.unibo.it/gitweb/?p=helm.git;a=blobdiff_plain;f=helm%2FDEVEL%2Flablgtk%2Flablgtk_20001129-0.1.0%2Fexamples%2Flabel.ml;fp=helm%2FDEVEL%2Flablgtk%2Flablgtk_20001129-0.1.0%2Fexamples%2Flabel.ml;h=0000000000000000000000000000000000000000;hp=b9829fb7783df032e41ae9c0d833c5c3990fb4fe;hb=869549224eef6278a48c16ae27dd786376082b38;hpb=89262281b6e83bd2321150f81f1a0583645eb0c8 diff --git a/helm/DEVEL/lablgtk/lablgtk_20001129-0.1.0/examples/label.ml b/helm/DEVEL/lablgtk/lablgtk_20001129-0.1.0/examples/label.ml deleted file mode 100644 index b9829fb77..000000000 --- a/helm/DEVEL/lablgtk/lablgtk_20001129-0.1.0/examples/label.ml +++ /dev/null @@ -1,48 +0,0 @@ -(* $Id$ *) - -(* Embedding xpm data into an ML file *) - -let openfile = [| -(* width height num_colors chars_per_pixel *) -" 20 19 5 1"; -(* colors *) -". c None"; -"# c #000000"; -"i c #ffffff"; -"s c #7f7f00"; -"y c #ffff00"; -(* pixels *) -"...................."; -"...................."; -"...................."; -"...........###......"; -"..........#...#.#..."; -"...............##..."; -"...###........###..."; -"..#yiy#######......."; -"..#iyiyiyiyi#......."; -"..#yiyiyiyiy#......."; -"..#iyiy###########.."; -"..#yiy#sssssssss#..."; -"..#iy#sssssssss#...."; -"..#y#sssssssss#....."; -"..##sssssssss#......"; -"..###########......."; -"...................."; -"...................."; -"...................." |] - -open GMain - -let main () = - let w = GWindow.window ~border_width:2 () in - w#misc#realize (); - let hbox = GPack.hbox ~spacing:10 ~packing:w#add () in - let pm = GDraw.pixmap_from_xpm_d ~data:openfile ~window:w () in - GMisc.pixmap pm ~packing:hbox#add (); - GMisc.label ~text:"Embedded xpm" ~packing:hbox#add (); - w#show (); - w#connect#destroy ~callback:Main.quit; - Main.main () - -let () = main ()