www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/23/21:32:23

From: "Chris A. Triebel" <cat AT sun4 DOT iol DOT unh DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How can I put BITMAP on Buttom?
Date: Thu, 22 May 1997 09:00:41 -0400
Organization: University of New Hampshire - Durham, NH
Lines: 38
Message-ID: <Pine.SUN.3.91.970522085558.11452A-100000@sun4.iol.unh.edu>
References: <01bc655f$9957d520$79297dc2 AT qwerty> <01bc6610$fff530a0$162a7dc2 AT qwerty> <5lvpf1$ncq AT news DOT interlog DOT com>
NNTP-Posting-Host: sun4.iol.unh.edu
Mime-Version: 1.0
In-Reply-To: <5lvpf1$ncq@news.interlog.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Wed, 21 May 1997, Gautam N. Lad wrote:

> Date: Wed, 21 MAY 97 21:34:04 GMT 
> From: Gautam N. Lad <gautam AT interlog DOT com>
> Newgroups: comp.os.msdos.djgpp
> Subject: Re: How can I put BITMAP on Buttom? 
> 
> Hi,
> >I mean How Can i do it in Allegro
> >> How can I put Bitmap on a button?
> 
> I konw Allegro doesn't support bitmapped buttons (CMIIW), so I guess your 
> best bet would be to get one of those Allegro GUI classes.  It may have them.  I 
> don't
> have any links or know exactly, but I do know a few exist.
> 
> Try asking someone.  If you don't know C++, you might have to make your own 
> routines for bitmapped buttons.
> 
> Hope this helps!
> Bye!
> 

Karl Rudd put out a set of classes for doing gui objects in allegro:

http://www.geocities.com/SiliconValley/Pines/5141/

But I think there is an easier way if you are already using allegro's own 
gui code.  First off copy the function that pertains to the button in 
allegro into a source file of your own making.  Second look for where the 
drawing gets done in that code.  ( unfortunatly I don't have the code 
handy so I can't look at this stuff up, but I believe there was a 
textout() function or something that performed it based on a void* in the 
definition structure.  Replace this with a blit() function, and use the 
void* to store the bitmap location.

Hope this helps.
cat

- Raw text -


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