Mail Archives: djgpp/1999/02/23/11:02:41
the code:
#include <stdlib.h>
#include <stdio.h>
#include "allegro.h"
PALLETE my_pallete;
const BITMAP *scry;
DIALOG the_dialog[] =
{
{ d_clear_proc, 0, 0, 0, 0, 255, 0, 0, 0, 0, 0,
NULL },
{ d_icon_proc, 2, 2, 32, 32, 255, 9, 0, 0, 0, 0,
scry},
{ d_check_proc, 32, 64, 88, 12, 255, 0, 't', 0, 0, 0,
"&Toggle Me" },
{ NULL, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
NULL }
};
int main()
{
allegro_init();
install_keyboard();
install_mouse();
install_timer();
set_gfx_mode(GFX_VESA1, 320, 200, 0, 0);
set_pallete(desktop_pallete);
scry = load_bmp("shield.bmp",my_pallete);
do_dialog(the_dialog, -1);
return 0;
}
the error:
(11) Error: initializer element for 'the_dialog[1].dp' is not constant
im am sorry if this error was due to ignorance. at a glance it does look like
it should work. if you are woundering - all i want to do is place a pictue in
and icon button. i want to design a grfx editor and i want pics on my buttons.
i've prg'd in vb and now moved to c. so in my mind this looks ok.
if you can mail me. great
et1850 AT aol DOT com - thank you
- Raw text -