From: "Chris A. Triebel" 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: 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 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <5lvpf1$ncq@news.interlog.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Wed, 21 May 1997, Gautam N. Lad wrote: > Date: Wed, 21 MAY 97 21:34:04 GMT > From: Gautam N. Lad > 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