Click to See Complete Forum and Search --> : CheckBox


February 22nd, 2000, 02:24 PM
I want to learn more about CheckBox.
How can I to know when it's checked?
Is there any especial function to get status of checked? What one?

David P Brady
February 22nd, 2000, 05:10 PM
CheckRadioButton sets the checkmark for a button.
IsDlgButtonChecked returns 0 or 1 if the button is unchecked or checked, respectively.
GetCheckedRadioButton will give you the ID of the currently checked button if you give it the ID of the first and last radio button in the group.

Free bonus tip #1: If you want to use more than one group of radio buttons, be sure to check the "Group" checkbox in the properties of the first button in each group.

Free bonus tip #2: If you have more than one group of buttons, and later want to add an additional button to the first group, you're going to have trouble. You'll need to edit the resource file manually. If you don't know how to do that, then do this instead: Delete all the radio buttons from the first group, then add them all back in with the new one.

Good luck!

-dB

--
David Brady
dbrady_at_acclaim.com
Replace _at_ with @ to send e-mail
"There's no sense being exact about something if you don't even know what you're talking about." -- John von Neumann