How to implement Visual component realations
-
Hi, I want to know how Visual C++ experts implement these complicated logical relations between visual components of a form. For example when user switch between different radio buttons and you need to en/disable other components or some other tasks. Actually I need some APIs (like EnumChildWindows) or some approaches(which I don't know any!) to make it more covnvenient to do such boring tasks!
-
Hi, I want to know how Visual C++ experts implement these complicated logical relations between visual components of a form. For example when user switch between different radio buttons and you need to en/disable other components or some other tasks. Actually I need some APIs (like EnumChildWindows) or some approaches(which I don't know any!) to make it more covnvenient to do such boring tasks!
Interaction between controls in a WinForm Application is handled by using events of controls. Therefore lets say if we want to disable a button control on selection of a radio button, we can use code like this – private: System::Void radioButton1_CheckedChanged(System::Object^ sender, System::EventArgs^ e) { this->button1->Enabled=false; } Don’t forget to add handler for Checked event of Radio button. -Dave.
------------------------------------ http://www.componentone.com ------------------------------------