___ _ | \(_)_ __ ___ | |) | | ' \/ -_) |___/|_|_|_|_\___|

Dialogs Made Easy version 1.2.1

Readme File

http://dime.sourceforge.net/

by Sven Sandberg


Contents




Introduction

Dime is a library with functions for constructing Allegro gui dialogs in a simple way similar to scanf(), but much nicer for the user of course. You only need one line of code to create a dialog where the user can input eg two integers and one string, and select one file. This way it becomes a lot easier to open certain kinds of dialogs.

The following platforms are supported: DOS/DJGPP, DOS/Watcom, Linux, Windows/Mingw32 and Windows/MSVC.

This documentation is compiled the same way as Allegro's, so after installing the library you can read it in txt, html, inf, rtf or man format.



Licence

Dime is completely free. You may use and distribute it freely and you don't have to give us anything back. It would be nice if you mentioned Dime in the credits, and even nicer if you gave me some feedback (this could be a bug report, a suggestion of a new feature or just a message saying that you adore the library and wouldn't be able to continue living without it, etc) but you are not required to do so.

I have no responsibility for any damage caused by Dime.



Requirements

You need to have installed and compiled Allegro (http://www.talula.demon.co.uk/allegro/). You need at least version 3.9.35 (3.12 won't do, it's very old!). All other requirements must already be fulfilled if you manage to compile Allegro.



Installation

Installation goes in three simple steps, and should be familiar since it is exactly the same way as you installed Allegro:

That's it! You may also want to perform some of the optional steps:



Usage

You need Allegro in order to use this library. You most likely already have it since you found this library, but if you don't have it you should download it from http://www.talula.demon.co.uk/allegro/ and get familiar with it before using Dime.

#include <dime.h> in the top of each file that uses a function from the library.

If you link on the command line, link with '-ldime -lalleg'. It is important that you specify the libraries in that order. If you want the ability to debug inside dime's functions, or if you want the library to check for bad format strings (recommended for everything that is not a release version), then link with '-ldimed' instead of '-ldime'.

If you use RHIDE, go to the menu Options/Libraries and fill in dime. It is important that dime is above alleg. Don't forget to check the box to the left of the library. You may replace dime with dimed to include debugging information.

Before calling `dialogf()' or `vdialogf()' you must have initialized Allegro by calling `allegro_init()', `install_keyboard()', `install_mouse()', and `set_gfx_mode()'. Then you must call `dime_init()' to initialize Dime and after this, Dime's functions are ready to use.



Common Problems

It is easy to give invalid arguments to `dialogf()' by accident, and the error might not point out the source of the problem very well. Here is a checklist with the most common problems:



Contact Info

Email:

Homepage: Telephone: Real Life Address: