Mail Archives: djgpp/1997/05/23/21:32:23
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 -