本文整理汇总了C++中TextBoxNumeric::SetText方法的典型用法代码示例。如果您正苦于以下问题:C++ TextBoxNumeric::SetText方法的具体用法?C++ TextBoxNumeric::SetText怎么用?C++ TextBoxNumeric::SetText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类TextBoxNumeric
的用法示例。
在下文中一共展示了TextBoxNumeric::SetText方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdateControls
void HSVColorPicker::UpdateControls( Gwen::Color color )
{
// What in the FUCK
TextBoxNumeric* redBox = gwen_cast<TextBoxNumeric> ( FindChildByName( "RedBox", false ) );
if ( redBox ) { redBox->SetText( Gwen::Utility::ToString( ( int ) color.r ), false ); }
TextBoxNumeric* greenBox = gwen_cast<TextBoxNumeric> ( FindChildByName( "GreenBox", false ) );
if ( greenBox ) { greenBox->SetText( Gwen::Utility::ToString( ( int ) color.g ), false ); }
TextBoxNumeric* blueBox = gwen_cast<TextBoxNumeric> ( FindChildByName( "BlueBox", false ) );
if ( blueBox ) { blueBox->SetText( Gwen::Utility::ToString( ( int ) color.b ), false ); }
m_After->SetColor( color );
}
示例2: UpdateColorControls
void ColorPicker::UpdateColorControls( Gwen::String name, Gwen::Color col, int sliderVal )
{
ColorDisplay* disp = gwen_cast<ColorDisplay> ( FindChildByName( name, true ) );
disp->SetColor( col );
HorizontalSlider* slider = gwen_cast<HorizontalSlider> ( FindChildByName( name + "Slider", true ) );
slider->SetFloatValue( sliderVal );
TextBoxNumeric* box = gwen_cast<TextBoxNumeric> ( FindChildByName( name + "Box", true ) );
box->SetText( Gwen::Utility::ToString( sliderVal ) );
}
示例3: UpdateColorControls
void ColorPicker::UpdateColorControls( Gwen::String name, Gwen::Color col, int sliderVal )
{
Base* el = FindChildByName( name, true );
ColorDisplay* disp = el ? el->DynamicCastColorDisplay() : 0;
disp->SetColor( col );
HorizontalSlider* slider = FindChildByName( name + "Slider", true )->DynamicCastHorizontalSlider();
slider->SetValue( sliderVal );
TextBoxNumeric* box = FindChildByName( name + "Box", true )->DynamicCastTextBoxNumeric();
box->SetText( Gwen::Utility::ToString( sliderVal ) );
}