示例#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() );
}