Message-Id: <199809211250.NAA17829@rochefort.ns.easynet.net>
Comments: Authenticated sender is <mert0407 AT sable DOT ox DOT ac DOT uk>
From: "George Foot" <george DOT foot AT merton DOT ox DOT ac DOT uk>
To: jfvschra AT eduserv1 DOT rug DOT ac DOT be (Johan Verschraegen)
Date: Thu, 17 Sep 1998 22:18:04 +0000
MIME-Version: 1.0
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Subject: Re: allegro gui question
Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk
CC: djgpp AT delorie DOT com
Precedence: bulk

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