Bitmap buttons to behave like radio buttons? 
Author Message
 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.



Sat, 04 Aug 2001 03:00:00 GMT  
 Bitmap buttons to behave like radio buttons?
Make checkbox button w the Bitmap style set. Check and uncheck manually,
using CheckDlgButton (for example) in the different control handlers.

Johan Rosengren
Responsable Informatique
PACTA S.A.



Sun, 05 Aug 2001 03:00:00 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. check a single radio button in a radio-button-group

2. buttons, check buttons, radio buttons, and such...

3. Bitmap and Radio Buttons?

4. Bitmap/Text Radio button

5. Radio Buttons with bitmap

6. Resizing Radio Button to fit bitmap

7. radio button bitmap

8. Pushbutton-Style Radio Bitmap Button

9. How to resue radio button's radio icon

10. how to create a window without any close button (include OK button and X button)

11. Disabling Bitmap Button loses bitmap

12. Radio Button/Custom Class Conflict

 

 
Powered by phpBB® Forum Software