Reimplemented from OglGui::StringListener. Definition at line 89 of file CheckBoxValueBars.h. References OglGui::ColorTargetModalDialogFunc(), OglGui::CheckBox::DoSelect(), OglGui::OglWindow::GetBorderBackground(), GetItem(), OglGui::CheckBox::GetSelected(), OglGui::StringSelector::GetString(), OglGui::StaticText::GetText(), HideDropSelector(), mOptions, OglGui::CheckBoxValueBar::Name(), OglGui::StaticText::SetText(), and OglGui::CheckBoxValueBar::ValueBar(). 00090 { 00091 std::string str = src->GetString(strIndex); 00092 CheckBox* chBox = (CheckBox*) userData; 00093 CheckBoxValueBar* cbVB; 00094 00095 if ((mOptions & 2) && strIndex==0) // Change Color 00096 { 00097 cbVB = GetItem(chBox->GetText()); 00098 HideDropSelector(); 00099 ULONG col = chBox->GetBorderBackground(); 00100 ColorTargetModalDialogFunc(src,cbVB->ValueBar(),0,col,800,400); 00101 return; 00102 } 00103 00104 chBox->SetText(""); 00105 cbVB = GetItem(str); 00106 if (cbVB) // If other item has same text then clear it 00107 cbVB->Name(""); 00108 chBox->SetText(str); 00109 HideDropSelector(); 00110 00111 // Trick to allow listener to sync 00112 chBox->DoSelect(chBox->GetSelected()); 00113 }
Here is the call graph for this function:
|