Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Windows Forms
  4. How to implement Visual component realations

How to implement Visual component realations

Scheduled Pinned Locked Moved Windows Forms
c++tutorial
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    reza matinnejad
    wrote on last edited by
    #1

    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!

    A 1 Reply Last reply
    0
    • R reza matinnejad

      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!

      A Offline
      A Offline
      Ajay k_Singh
      wrote on last edited by
      #2

      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 ------------------------------------

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups