Enabling/Disabling a dialog Button 
Author Message
 Enabling/Disabling a dialog Button

I have two radio buttons.  When one of these buttons is checked I want a
Dialog button to be enabled.  Any information would be helpful.  Thanks.

--
Jason Schadel




Tue, 19 Feb 2002 03:00:00 GMT  
 Enabling/Disabling a dialog Button


Fri, 19 Jun 1992 00:00:00 GMT  
 Enabling/Disabling a dialog Button
I have two radio buttons let's say button1 and button2 and a dialog button
called dlbutton.  When button1 is checked I want dlbutton to be disabled and
when button2 is checked I want dlbutton to be enabled.  How do I do the
disabling and enabling?
Quote:

> I have two radio buttons.  When one of these buttons is checked I want a
> Dialog button to be enabled.  Any information would be helpful.  Thanks.

> --
> Jason Schadel





Tue, 19 Feb 2002 03:00:00 GMT  
 Enabling/Disabling a dialog Button
Jason ,

Add a handler in the class wizard for BN_CLICKED for each of the radio
buttons. In the handler check its value with button1.GetCheck() and call
dlbutton.EnableWindow() with the appropriate value.

--
_______________________________
Craig Klementowski
Omnitech Corporate Solutions, Inc.
Formerly MediaRight Technology, Inc.
Web:    www.omnitech-us.com
Remove the obvious to send me email.
_______________________________

Quote:

> I have two radio buttons let's say button1 and button2 and a dialog button
> called dlbutton.  When button1 is checked I want dlbutton to be disabled
and
> when button2 is checked I want dlbutton to be enabled.  How do I do the
> disabling and enabling?




Quote:
> > I have two radio buttons.  When one of these buttons is checked I want a
> > Dialog button to be enabled.  Any information would be helpful.  Thanks.

> > --
> > Jason Schadel





Tue, 19 Feb 2002 03:00:00 GMT  
 
 [ 4 post ] 

 Relevant Pages 

1. File Open Dialog - Open button Enable&Disable

2. File Open Dialog - Open button Enable&Disable

3. How to enable/disable Toolbar button in Dialog Based MFC application

4. File Open Dialog - Open button Enable&disable

5. enable/disable toolbar button using pCmdUI->Enable(TRUE/FALSE) doesnt work

6. Real Simple: Enabling/disabling buttons on Dialog boxes

7. Enable/Disable menus/buttons similar to MFC ON_UPDATE_COMMAND_UI

8. Enable / Disable a button

9. enable and disable command buttons

10. Disable/Enable Button

11. Grouped Radio Buttons, Enable and Disable

12. Enable/Disable buttons?

 

 
Powered by phpBB® Forum Software