CtrlLibTest::CtrlLibTest() { CtrlLayout(*this, "Window title"); switch1.Add(0, "One"); switch1.Add(1, "Two"); switch1.Add(2, "Three"); switch1 <<= Null; switch2.Add(String("Letter A"), "A"); switch2.Add(String("Letter B"), "B"); switch2.Add(String("Letter C"), "C"); switch2 <<= "Letter A"; switch1 <<= THISBACK(OnSwitch1); switch2 <<= THISBACK(OnSwitch2); } void CtrlLibTest::OnSwitch1() { switch2 <<= Null; } void CtrlLibTest::OnSwitch2() { switch1 <<= Null; }
Report message to a moderator