From: et1850 AT aol DOT com (Et1850) Newsgroups: comp.os.msdos.djgpp Subject: Using the Dialogs -help!! please Lines: 45 NNTP-Posting-Host: ladder01.news.aol.com X-Admin: news AT aol DOT com Date: 23 Feb 1999 15:36:55 GMT Organization: AOL http://www.aol.com Message-ID: <19990223103655.01136.00001843@ng-ce1.aol.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com the code: #include #include #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