예제 #1
0
void OnComboSelect() {
	std::stringstream sstr;

	sstr << "Item " << combo_box->GetSelectedItem() << " selected with text \"" << static_cast<std::string>( combo_box->GetSelectedText() ) << "\"";
	sel_label->SetText( sstr.str() );
}
예제 #2
0
파일: ComboBox.cpp 프로젝트: Cruel/SFGUI
void ComboBoxExample::OnComboSelect() {
	std::stringstream sstr;

	sstr << "Item " << m_combo_box->GetSelectedItem() << " selected with text \"" << static_cast<std::string>( m_combo_box->GetSelectedText() ) << "\"";
	m_sel_label->SetText( sstr.str() );
}