Mail Archives: djgpp/1997/08/04/14:17:52
> 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
- Raw text -