Main Page | Class Hierarchy | Compound List | File List | Compound Members | File Members | Related Pages

dig - A GUI Library for D


The dig library provides a wrapper for OS GUIs, currently only Windows 95+'s. It should be considered pre-alpha state, with minimal functionality. dig is in the public domain, with the exception of, which is LGPL.


Downloads are available at the Downloads and Changelog page. dig comes with a build utility called digc.

You can get a summary at the Library Summary page.

The main class hierarchy to dig begins with the abstract Control class; the most important one is the Frame, which is a window control. The registry is encapsulated in the Registry singleton. Once installed, use "import net.BurtonRadons.dig.main;" to get the main controls; use "import;" to get the CanvasGL class and the many components of that.


You will first need DMD; get it by going here and downloading both files. dig expects that DMD and DMC are installed in the root directory of the current drive and are properly working.

Compile and install dig by running the "go.bat" program in the install directory.

If there is a complaint with an error message like "c:\dmd\bin\..\..\bin", then you need to reinstall DMD as there was an incorrect sc.ini version. Likewise, if you get a complaint from lib.exe about not providing a library, unzip again to overwrite the incorrect version in

Once it's installed, it'll automatically build and run one of the example programs. The examples directory contains other stuff to play with.


To use dig in your programs, you generally make files of the form:

  // Import dig - doesn't import CanvasGL or ScintillaText.
  import net.BurtonRadons.dig.main;
  class Program : Frame
      this ()
          caption ("Hello program");
          with (new Label (this))
              grid (0, 0);
              caption ("Hello, world!");
  void main ()
     (new Program).showModal ();

Generated on Thu Sep 4 13:12:50 2003 for dig by doxygen 1.3.2