Dialog Configuration Variables



By twiddling the variables in this section, you can change the general appearance of Dime dialogs.

BITMAP *dime_bmp;
If you want the dialog to be displayed on a certain video bitmap other than `screen', set this to point to that bitmap. This is particulary useful if you for some reason have scrolled away from the top left area of the video memory and want the dialog to be displayed on currently visible video memory rather than on the default location. If this is NULL (it is by default), `dialogf()' & co will scroll to the top left corner of screen and use that part to display the dialog on.

FONT *dime_font;
FONT *dime_title_font;
FONT *dime_button_font;
The font used in general by Dime dialogs and objects, the font for the title of the dialogs and the font for the OK and Cancel buttons. If one of them is NULL (they all are by default), Allegro's `font' will be used.

int dime_yield;
Flag indicating whether or not Dime dialogs should call Allegro's function `yield_timeslice()' continuously when it has nothing better to do. Default is `TRUE'.

int dime_clean_screen;
Flag indicating whether or not Dime dialogs should restore the screen after they have been closed. Default is `TRUE', indicating the screen should be restored.

void (*dialogf_callback)(DIALOG *d)
If you set this to something else than `NULL', then that function will be called continuously as long as a Dime dialog is open. The argument `d' will point to the first object of the current Dime dialog, or the first object of Allegro's file selector when it's open.

extern RGB

extern int


Back to Contents