From: Vic Newsgroups: comp.os.msdos.djgpp Subject: Re: Allegro GUI Problem Date: Tue, 29 Jul 1997 21:57:49 -0400 Organization: Communications Accesibles Montreal Lines: 16 Message-ID: <33DE9F9D.60C7@cam.org> References: <3 DOT 0 DOT 32 DOT 19970729144506 DOT 00693058 AT m1 DOT 261 DOT telia DOT com> Reply-To: tudor AT cam DOT org NNTP-Posting-Host: dynppp-73.hip.cam.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk > When i run this the button behaves kinda like a checkbox, when the mouse is > clicked over it it changes to the pushed_button bitmap. How do i make work > like a normal button, so that the pushed_button bmp is displayed when the > button is clicked and then when the button is released it will be > overwritten with the normal_button bmp? Stop using D_SELECTED. AFAIK (never worked with the gui actually) the D_SELECTED flag is set as a checkbox. Like, you push the button, flag is set. Push it again, flag is unset. As long as you use that flag the button will behave like that. Write your own click procedure and you're done. -- --> http://www.cam.org/~tudor <-- prick your finger it is done the moon has now eclipsed the sun the angel has spread it's wings the time has come for bitter things