CButton::GetState in .NET?
-
What is the .NET equivalent for CButton::GetState? Any help is hugely appreciated. Thank you, Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
-
What is the .NET equivalent for CButton::GetState? Any help is hugely appreciated. Thank you, Nish
The rumours that I am an AI bot are absolutely false. These rumours have been propogated by *them* to focus all the attention on to me, while *their* bots take over the planet. Thank y%%%% Divide by zero. Cannot proceed. Abort(y/y)?
Nish, You can use the
.Checked
attributeif(checkBox1.Checked) { MessageBox.Show("Checkbox1 is checked"); } if (radioButton1.Checked) { MessageBox.Show("radioButton1 is checked"); }
HTH Nick Parker This is a non-Calculus course as long as you know things like line integrals and surface integrals...
-
Nish, You can use the
.Checked
attributeif(checkBox1.Checked) { MessageBox.Show("Checkbox1 is checked"); } if (radioButton1.Checked) { MessageBox.Show("radioButton1 is checked"); }
HTH Nick Parker This is a non-Calculus course as long as you know things like line integrals and surface integrals...
The GetState function he's looking at tells you if the button is currently in the 'clicked' state, when the mouse button is held down on top of it. The way to do this is to capture the mousedown/up events on the button and set a flag there. James Simplicity Rules!
-
The GetState function he's looking at tells you if the button is currently in the 'clicked' state, when the mouse button is held down on top of it. The way to do this is to capture the mousedown/up events on the button and set a flag there. James Simplicity Rules!
I was going off the definition that Microsoft shows for CButton::GetState at: CButton::GetState Microsoft says: Specifies the check state (radio buttons and check boxes only). A 0 indicates the button is unchecked. A 1 indicates the button is checked. A radio button is checked when it contains a bullet (•). A check box is checked when it contains an X. A 2 indicates the check state is indeterminate (three-state check boxes only). The state of a three-state check box is indeterminate when it contains a halftone pattern. I could have been wrong, just the way I understood it :) Nick Parker This is a non-Calculus course as long as you know things like line integrals and surface integrals...
-
I was going off the definition that Microsoft shows for CButton::GetState at: CButton::GetState Microsoft says: Specifies the check state (radio buttons and check boxes only). A 0 indicates the button is unchecked. A 1 indicates the button is checked. A radio button is checked when it contains a bullet (•). A check box is checked when it contains an X. A 2 indicates the check state is indeterminate (three-state check boxes only). The state of a three-state check box is indeterminate when it contains a halftone pattern. I could have been wrong, just the way I understood it :) Nick Parker This is a non-Calculus course as long as you know things like line integrals and surface integrals...
Yeah, thats when you pass in 0x003, Nish was looking for 0x004, the 'highlight state'; but he didn't mention that in the post I asked him that over sonork last night :-P James Simplicity Rules!
-
Yeah, thats when you pass in 0x003, Nish was looking for 0x004, the 'highlight state'; but he didn't mention that in the post I asked him that over sonork last night :-P James Simplicity Rules!
I knew I hadn't been that far off, thanks. :) Nick Parker This is a non-Calculus course as long as you know things like line integrals and surface integrals...