By twiddling the variables in this section, you can change the general appearance of Dime dialogs.
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.
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.
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'.
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.
Most of the variable names should be pretty self-explanatory. `dime_disabled_text_rgb' is very seldom used and is the color of text on buttons that can't be pressed. `dime_error_text_rgb' is the color of the result of an expression if the expression was invalid (eg contained mismatched parentheses). Hopefully you will understand the other names, but if you don't, they are common enough that you should be able to find out with some trial and error.
Back to Contents