delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/21/08:46:24

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
Subject: Re: allegro gui question
Reply-to: mert0407 AT sable DOT ox DOT ac DOT uk
CC: djgpp AT delorie DOT com

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019