
Bitmap buttons to behave like radio buttons?
Quote:
>I would like a group of bitmap buttons to act like radio buttons so
>that when one is pressed, it stays pressed even when the mouse button
>is released. As for radio buttons, a maximum of one should be in the
>pressed state at any given time. In addition to this behaviour, if
>the 'selected' button is pressed again, it should be 'released' and
>leave none of the buttons pressed. This last feature is not usual for
>radio buttons as far as I'm aware.
>Does anyone know how I could achieve this? I'd be grateful for any
>help.
Chris,
Try this using the dialog editor.
Create a normal group of radio buttons, select them, and in the
properties dialog set the icon (or bitmap) style and the Push-like
style.
To get the selected behaviour you want, I think you'll need to switch
off the "Auto" style and handle the button click notifications
directly.
Dave
----
My address is altered to discourage junk mail.
Please post responses to the newsgroup thread,
there's no need for follow-up email copies.