本文整理汇总了C++中cegui::Editbox::setText方法的典型用法代码示例。如果您正苦于以下问题:C++ Editbox::setText方法的具体用法?C++ Editbox::setText怎么用?C++ Editbox::setText使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类cegui::Editbox
的用法示例。
在下文中一共展示了Editbox::setText方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: UpdatePickUPUIDate
bool UpdatePickUPUIDate(const CEGUI::EventArgs& e)
{
CEGUI::Window* pageWnd = WEArgs(e).window;
CEGUI::Editbox* edb = WEditBox(pageWnd->getChildRecursive("Auction/Pickup/EditGold"));
AHdata& ah = GetInst(AHdata);
edb->setText(CEGUI::PropertyHelper::intToString(ah.GetNumGoldCanPickUp()));
edb = WEditBox(pageWnd->getChildRecursive("Auction/Pickup/EditWeimian"));
edb->setText(CEGUI::PropertyHelper::intToString(ah.GetNumWeimianCanPickUp()));
return true;
}
示例2: historiqueHaut
void GuiChat::historiqueHaut()
{
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(chatWindow->getChild("Editbox"));
d_historyPos = ceguimax(d_historyPos - 1, -1);
if (d_historyPos >= 0)
{
editbox->setText(d_history[d_historyPos]);
editbox->setCaretIndex(static_cast<size_t>(-1));
}
else
{
editbox->setText("");
}
editbox->activate();
}
示例3: historiqueBas
void GuiChat::historiqueBas()
{
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(chatWindow->getChild("Editbox"));
d_historyPos = ceguimin(d_historyPos + 1, static_cast<int>(d_history.size()));
if (d_historyPos < static_cast<int>(d_history.size()))
{
editbox->setText(d_history[d_historyPos]);
editbox->setCaretIndex(static_cast<size_t>(-1));
}
else
{
editbox->setText("");
}
editbox->activate();
}
示例4: Editor_Activate
void cRokko::Editor_Activate(void)
{
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
// direction
CEGUI::Combobox* combobox = static_cast<CEGUI::Combobox*>(wmgr.createWindow("TaharezLook/Combobox", "editor_rokko_direction"));
Editor_Add(UTF8_("Direction"), UTF8_("Direction it moves into."), combobox, 100, 110);
combobox->addItem(new CEGUI::ListboxTextItem("left"));
combobox->addItem(new CEGUI::ListboxTextItem("right"));
combobox->addItem(new CEGUI::ListboxTextItem("up"));
combobox->addItem(new CEGUI::ListboxTextItem("down"));
combobox->setText(Get_Direction_Name(m_start_direction));
combobox->subscribeEvent(CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber(&cRokko::Editor_Direction_Select, this));
// speed
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(wmgr.createWindow("TaharezLook/Editbox", "editor_rokko_speed"));
Editor_Add(UTF8_("Speed"), UTF8_("Speed when activated"), editbox, 120);
editbox->setValidationString("[+]?[0-9]*\\.?[0-9]*");
editbox->setText(float_to_string(m_speed, 6, 0));
editbox->subscribeEvent(CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber(&cRokko::Editor_Speed_Text_Changed, this));
// init
Editor_Init();
}
示例5: OnPageOpen
void LoginEvent::OnPageOpen(GamePage *pPage)
{
CEGUI::Window *pLoginWindow = pPage->GetPageWindow();
//设置账号编辑框并得到焦点
CEGUI::Editbox *pIDEdit = static_cast<CEGUI::Editbox*>(pLoginWindow->getChild("LoginPage/Account"));
/////////////////////////////////////////////////
// zhaohang 2010/3/29
//
//读cdkey
ifstream stream2;
stream2.open("setup/cdkey.ini");
if (stream2.is_open())
{
bool bRememberCdkey=false;
stream2 >> bRememberCdkey;
if (bRememberCdkey)
{
string str;
stream2 >> str;
pIDEdit->setText(str.c_str());
//m_pRememberCdkey->SetSelected(true);
}
stream2.close();
}
示例6: effaceSaisi
void Chat::effaceSaisi()
{
// get the text entry editbox
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(d_root->getChild("Editbox"));
editbox->setText("");
editbox->deactivate();
}
示例7: Editor_Activate
void cFlyon::Editor_Activate(void)
{
// get window manager
CEGUI::WindowManager& wmgr = CEGUI::WindowManager::getSingleton();
// direction
CEGUI::Combobox* combobox = static_cast<CEGUI::Combobox*>(wmgr.createWindow("TaharezLook/Combobox", "editor_flyon_direction"));
Editor_Add(UTF8_("Direction"), UTF8_("Direction it moves into."), combobox, 100, 110);
combobox->addItem(new CEGUI::ListboxTextItem("up"));
combobox->addItem(new CEGUI::ListboxTextItem("down"));
combobox->addItem(new CEGUI::ListboxTextItem("left"));
combobox->addItem(new CEGUI::ListboxTextItem("right"));
combobox->setText(Get_Direction_Name(m_start_direction));
combobox->subscribeEvent(CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber(&cFlyon::Editor_Direction_Select, this));
// image dir
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(wmgr.createWindow("TaharezLook/Editbox", "editor_flyon_image_dir"));
Editor_Add(UTF8_("Image directory"), UTF8_("Directory containing the images"), editbox, 200);
editbox->setText(path_to_utf8(m_img_dir).c_str());
editbox->subscribeEvent(CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber(&cFlyon::Editor_Image_Dir_Text_Changed, this));
// max distance
editbox = static_cast<CEGUI::Editbox*>(wmgr.createWindow("TaharezLook/Editbox", "editor_flyon_max_distance"));
Editor_Add(UTF8_("Distance"), _("Movable Distance into its direction"), editbox, 90);
editbox->setValidationString("^[+]?\\d*$");
editbox->setText(int_to_string(static_cast<int>(m_max_distance)));
editbox->subscribeEvent(CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber(&cFlyon::Editor_Max_Distance_Text_Changed, this));
// speed
editbox = static_cast<CEGUI::Editbox*>(wmgr.createWindow("TaharezLook/Editbox", "editor_flyon_speed"));
Editor_Add(UTF8_("Speed"), UTF8_("Initial speed when jumping out"), editbox, 120);
editbox->setValidationString("[+]?[0-9]*\\.?[0-9]*");
editbox->setText(float_to_string(m_speed, 6, 0));
editbox->subscribeEvent(CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber(&cFlyon::Editor_Speed_Text_Changed, this));
// init
Editor_Init();
}
示例8: handleUpdateTimer
/***********************************************************************
Handle timer refresh
***********************************************************************/
bool MinesweeperSample::handleUpdateTimer(const CEGUI::EventArgs&)
{
if (d_gameStarted)
{
clock_t time = ::clock();
time -= d_timerStartTime;
if (time != d_timerValue)
{
d_timer->setText(CEGUI::PropertyHelper<CEGUI::uint>::toString(time / CLOCKS_PER_SEC));
d_timerValue = time;
}
}
return true;
}
示例9: handleGameStartClicked
/*************************************************************************
Handle new game started event
*************************************************************************/
bool MinesweeperSample::handleGameStartClicked(const CEGUI::EventArgs&)
{
d_result->setVisible(false);
boardReset();
boardPositionMines();
for (size_t i = 0 ; i < MinesweeperSize ; ++i)
{
for(size_t j = 0 ; j < MinesweeperSize ; ++j)
{
d_buttons[i][j]->setProperty("DisabledTextColour", "FF000000");
d_buttons[i][j]->setText("");
d_buttons[i][j]->setEnabled(true);
}
}
d_counter->setText(CEGUI::PropertyHelper<CEGUI::uint>::toString(MineCount));
// Handle timer
d_timerStartTime = ::clock();
d_timerValue = 0;
d_timer->setText("0");
d_gameStarted = true;
d_alarm->start();
return true;
}
示例10:
void cLayer_Line_Point_Start :: Editor_Activate( void )
{
// get window manager
CEGUI::WindowManager &wmgr = CEGUI::WindowManager::getSingleton();
// origin
CEGUI::Editbox *editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "layer_line_origin" ));
Editor_Add( UTF8_("Waypoint origin"), UTF8_("Waypoint origin"), editbox, 100 );
editbox->setValidationString( "^[+]?\\d*$" );
editbox->setText( int_to_string( m_origin ) );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cLayer_Line_Point_Start::Editor_Origin_Text_Changed, this ) );
// init
Editor_Init();
}
示例11: showHighScoreEntryDialog
void GameState::showHighScoreEntryDialog()
{
CEGUI::WindowManager& winMgr = CEGUI::WindowManager::getSingleton();
_highScoreEntryDialog = winMgr.loadWindowLayout( "highScoreEntry.layout" );
CEGUI::Window* text = static_cast<CEGUI::Window*>(winMgr.getWindow("StaticText"));
CEGUI::PushButton* btnOk = static_cast<CEGUI::PushButton*>(winMgr.getWindow("btnOk"));
CEGUI::PushButton* btnCancel = static_cast<CEGUI::PushButton*>(winMgr.getWindow("btnCancel"));
CEGUI::Editbox* editbox = static_cast<CEGUI::Editbox*>(winMgr.getWindow("Editbox"));
text->setText(std::string("New HighScore!\n")+boost::lexical_cast<std::string,int>((int)_playerScore));
btnOk->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&GameState::enterHighScore,this) );
btnCancel->subscribeEvent(CEGUI::PushButton::EventClicked, CEGUI::Event::Subscriber(&GameState::skipHighScore,this) );
editbox->setText("Unknown");
editbox->setMaxTextLength(7);
editbox->setValidationString("^\\w*$");
CEGUI::System::getSingleton().setGUISheet( _highScoreEntryDialog );
}
示例12: HandleConnect
/***********************************************************
handle connect button event
***********************************************************/
bool LoginGUI::HandleConnect(const CEGUI::EventArgs& e)
{
try
{
CEGUI::WindowManager::getSingleton().getWindow("DisplayLoginErrorFrame")->hide();
CEGUI::Editbox * lt = static_cast<CEGUI::Editbox *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginText"));
CEGUI::Editbox * pt = static_cast<CEGUI::Editbox *> (
CEGUI::WindowManager::getSingleton().getWindow("PasswordText"));
CEGUI::Checkbox * cbl = static_cast<CEGUI::Checkbox *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginPlayLocalCb"));
if(lt && pt && cbl)
{
bool seleplaylo = cbl->isSelected();
std::string txtl = lt->getText().c_str();
std::string txtt = pt->getText().c_str();
if((txtl != "") && (txtl.size() <= 20) && (txtt.size() <= 20))
{
std::string samples = "Data/Samples/lba2launcherblob.wav";
MusicHandler::getInstance()->PlaySample(samples, 0);
ConfigurationManager::GetInstance()->SetString("Player.Name", txtl);
pt->setText("");
ThreadSafeWorkpile::getInstance()->AddEvent(new LoginEvent(txtl, txtt, seleplaylo));
}
}
}
catch(CEGUI::Exception &ex)
{
LogHandler::getInstance()->LogToFile(std::string("Exception trying to get connection info from the gui: ") + ex.getMessage().c_str());
return false;
}
return true;
}
示例13: Initialize
/***********************************************************
init function
***********************************************************/
void LoginGUI::Initialize(const std::string &clientversion)
{
try
{
_root = CEGUI::WindowManager::getSingleton().loadWindowLayout( "LoginWindow.layout" );
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("ConnectB"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::HandleConnect, this));
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("CancelB"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::HandleCancel, this));
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame/plus"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::Handlebplus, this));
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame/minus"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::Handlebminus, this));
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame/cplus"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::Handlecplus, this));
static_cast<CEGUI::PushButton *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame/cminus"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::Handlecminus, this));
CEGUI::WindowManager::getSingleton().getWindow("LBaNetLogo")->disable();
CEGUI::WindowManager::getSingleton().getWindow("LBaNetLogoCenter")->disable();
CEGUI::Editbox * pt = static_cast<CEGUI::Editbox *> (
CEGUI::WindowManager::getSingleton().getWindow("PasswordText"));
if(pt)
pt->setTextMasked(true);
std::string name;
ConfigurationManager::GetInstance()->GetString("Player.Name", name);
CEGUI::Editbox * lt = static_cast<CEGUI::Editbox *> (
CEGUI::WindowManager::getSingleton().getWindow("LoginText"));
lt->setText(name);
CEGUI::WindowManager::getSingleton().getWindow("DisplayLoginErrorFrame")->hide();
static_cast<CEGUI::FrameWindow *>(
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame"))->setDragMovingEnabled(false);
static_cast<CEGUI::FrameWindow *>(
CEGUI::WindowManager::getSingleton().getWindow("LoginWindowPlayerFrame"))->setRollupEnabled(false);
static_cast<CEGUI::FrameWindow *>(
CEGUI::WindowManager::getSingleton().getWindow("LoginWIndowFrame"))->setDragMovingEnabled(false);
static_cast<CEGUI::FrameWindow *>(
CEGUI::WindowManager::getSingleton().getWindow("LoginWIndowFrame"))->setRollupEnabled(false);
static_cast<CEGUI::PushButton *> (CEGUI::WindowManager::getSingleton().getWindow("DisplayLoginErrorFrame/bok"))->subscribeEvent (
CEGUI::PushButton::EventClicked,
CEGUI::Event::Subscriber (&LoginGUI::HandleCloseTextClicked, this));
CEGUI::FrameWindow * frw = static_cast<CEGUI::FrameWindow *> (
CEGUI::WindowManager::getSingleton().getWindow("DisplayLoginErrorFrame"));
frw->subscribeEvent (CEGUI::FrameWindow::EventCloseClicked,
CEGUI::Event::Subscriber (&LoginGUI::HandleCloseTextClicked, this));
CEGUI::WindowManager::getSingleton().getWindow("ClientVersionText")->setText(clientversion);
CEGUI::WindowManager::getSingleton().getWindow("PasswordText")->subscribeEvent(CEGUI::Window::EventKeyDown,
CEGUI::Event::Subscriber (&LoginGUI::HandleEnterKey, this));
}
catch(CEGUI::Exception &ex)
{
LogHandler::getInstance()->LogToFile(std::string("Exception init login gui: ") + ex.getMessage().c_str());
_root = NULL;
}
}
示例14: Ice
void cStaticEnemy :: Editor_Activate( void )
{
// get window manager
CEGUI::WindowManager &wmgr = CEGUI::WindowManager::getSingleton();
// image
CEGUI::Editbox *editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "editor_static_enemy_image" ));
Editor_Add( UTF8_("Image"), UTF8_("Image filename"), editbox, 200 );
editbox->setText( m_img_filename.c_str() );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Image_Text_Changed, this ) );
// rotation speed
editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "editor_static_enemy_rotation_speed" ));
Editor_Add( UTF8_("Rotation Speed"), UTF8_("Rotation Speed"), editbox, 120 );
editbox->setValidationString( "[-+]?[0-9]*\\.?[0-9]*" );
editbox->setText( float_to_string( m_rotation_speed ) );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Rotation_Speed_Text_Changed, this ) );
// path
editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "editor_static_enemy_path_identifier" ));
Editor_Add( UTF8_("Path Identifier"), UTF8_("Name of the Path to move along."), editbox, 120 );
editbox->setText( m_path_state.m_path_identifier.c_str() );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Path_Identifier_Text_Changed, this ) );
// speed
editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "editor_static_enemy_speed" ));
Editor_Add( UTF8_("Speed"), UTF8_("Maximum speed"), editbox, 120 );
editbox->setValidationString( "[-+]?[0-9]*\\.?[0-9]*" );
editbox->setText( float_to_string( m_speed ) );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Speed_Text_Changed, this ) );
// fire resistant
CEGUI::Combobox *combobox = static_cast<CEGUI::Combobox *>(wmgr.createWindow( "TaharezLook/Combobox", "editor_static_enemy_fire_resistant" ));
Editor_Add( UTF8_("Fire Resistant"), UTF8_("If it is resistant against fire"), combobox, 120, 80 );
combobox->addItem( new CEGUI::ListboxTextItem( UTF8_("Enabled") ) );
combobox->addItem( new CEGUI::ListboxTextItem( UTF8_("Disabled") ) );
if( m_fire_resistant )
{
combobox->setText( UTF8_("Enabled") );
}
else
{
combobox->setText( UTF8_("Disabled") );
}
combobox->subscribeEvent( CEGUI::Combobox::EventListSelectionAccepted, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Fire_Resistant_Select, this ) );
// ice resistance
editbox = static_cast<CEGUI::Editbox *>(wmgr.createWindow( "TaharezLook/Editbox", "editor_static_enemy_ice_resistance" ));
Editor_Add( UTF8_("Ice Resistance"), UTF8_("Resistance against Ice (0.0-1.0)"), editbox, 120 );
editbox->setValidationString( "[+]?[0-9]*\\.?[0-9]*" );
editbox->setText( float_to_string( m_ice_resistance ) );
editbox->subscribeEvent( CEGUI::Editbox::EventTextChanged, CEGUI::Event::Subscriber( &cStaticEnemy::Editor_Ice_Resistance_Text_Changed, this ) );
// init
Editor_Init();
}
示例15: SetInitializedAHUIProperty
void SetInitializedAHUIProperty(CEGUI::Window* pageWnd)
{
//第一次打开窗口,默认可见
pageWnd->setVisible(false);
CEGUI::Window* tab1 = pageWnd->getChildRecursive("Auction/Tab/BuySale");
tab1->setVisible(true);//默认Tab1可见
CEGUI::Editbox* editbox = WEditBox(pageWnd->getChildRecursive("Auction/Pickup/EditGold"));//金币提取编辑框只能为数字
editbox->setText("");
editbox->setReadOnly(true);
//editbox->setMaxTextLength(10);
//只能输入数字
editbox->setValidationString("[0-9]*");
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Pickup/EditWeimian"));//位面提取编辑框只能为数字
editbox->setText("");
editbox->setReadOnly(true);
editbox->setValidationString("[0-9]*");
//editbox->setMaxTextLength(10);
CEGUI::MultiColumnList* mcl = WMCL(pageWnd->getChildRecursive("Auction/Tab/BuySale/SaleMCL"));
mcl->setUserColumnDraggingEnabled(false);//列不可拖动
mcl->setUserSortControlEnabled(false);//列不可排序
mcl->setUserColumnSizingEnabled(false);//列不可调整宽度
mcl = WMCL(pageWnd->getChildRecursive("Auction/Tab/BuySale/BuyMCL"));
mcl->setUserColumnDraggingEnabled(false);//列不可拖动
mcl->setUserSortControlEnabled(false);//列不可排序
mcl->setUserColumnSizingEnabled(false);//列不可调整宽度
CEGUI::Window* wnd = pageWnd->getChildRecursive("Auction/SaleWnd");
wnd->setVisible(false);//出售界面默认不可见
editbox = WEditBox(pageWnd->getChildRecursive("Auction/SaleWnd/saleNum"));//出售界面编辑框只能输入数字
editbox->setText("");
editbox->setMaxTextLength(10);
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox = WEditBox(pageWnd->getChildRecursive("Auction/SaleWnd/Text6"));//出售界面交易文本提示
editbox->setText("");
editbox = WEditBox(pageWnd->getChildRecursive("Auction/SaleWnd/Text61"));//
editbox->setText("");
wnd = pageWnd->getChildRecursive("Auction/BuyWnd");
wnd->setVisible(false);//购买界面默认不可见
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Buy/buyNum"));//购买界面编辑框只能输入数字
editbox->setText("");
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox->setMaxTextLength(4);
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Buy/Text6"));//购买界面交易文本提示
editbox->setText("");
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Buy/Text61"));
editbox->setText("");
mcl = WMCL(pageWnd->getChildRecursive("Auction/Tab/Query/MCL"));//个人查询MCL属性
mcl->setUserColumnDraggingEnabled(false);//列不可拖动
mcl->setUserSortControlEnabled(false);//列不可排序
mcl->setUserColumnSizingEnabled(false);//列不可调整宽度
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Tab/Agent/sale/EditNum"));//编辑框只能输入数字
editbox->setText("");
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox->setMaxTextLength(5);
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Tab/Agent/sale/EditPrice"));//编辑框只能输入数字
editbox->setText("");
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox->setMaxTextLength(5);
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Tab/Agent/Buy/EditNum"));//编辑框只能输入数字
editbox->setText("");
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox->setMaxTextLength(5);
editbox = WEditBox(pageWnd->getChildRecursive("Auction/Tab/Agent/Buy/EditPrice"));//编辑框只能输入数字
editbox->setText("");
//editbox->setReadOnly(false);
editbox->setValidationString("[0-9]*");
editbox->setMaxTextLength(5);
//////////////////////////////////////////////////
//委托页面支付提示
wnd = pageWnd->getChildRecursive("Auction/Tab/Agent/sale/subNum");//
wnd->setText("");
wnd = pageWnd->getChildRecursive("Auction/Tab/Agent/sale/subGold");//
wnd->setText("");
wnd = pageWnd->getChildRecursive("Auction/Tab/Agent/Buy/subNum");
wnd->setText("");
wnd = pageWnd->getChildRecursive("Auction/Tab/Agent/Buy/subGold");
wnd->setText("");
wnd = pageWnd->getChildRecursive("Auction/Tab/Agent/Buy/Text");
wnd->setText("");
////////////////////////////////////////////////////
//.........这里部分代码省略.........