Mail Archives: djgpp/1998/09/21/08:46:24
On 17 Sep 98 at 8:43, Johan Verschraegen wrote:
> I would like to use the allegro gui for a program and i have a simple
> question.
> In the DIALOG type there's a pointer called *dp. I want to put a BITMAP
> pointer in there to make a bitmapped button. Unfortunately i cannot use
> the pointer. Can i solve this in some elegant way(i.e. i don't want to use
> global pointers to bitmaps which my bitmap_button function then could use).
Set it to NULL initially, in the definition for the dialog, and set
it to the value you really want to use in your program code before
displaying the dialog. You might need to cast it also.
--
george DOT foot AT merton DOT oxford DOT ac DOT uk
- Raw text -